vowpalwabbit provides CMake targets:

    find_package(VowpalWabbit CONFIG REQUIRED)
    target_link_libraries(main PRIVATE VowpalWabbit::vw_core)
