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