yalantinglibs provides CMake targets: find_package(yalantinglibs CONFIG REQUIRED) target_link_libraries(main PRIVATE yalantinglibs::yalantinglibs)