The package @PORT@:@TARGET_TRIPLET@ provides CMake targets: find_package(@PORT@ CONFIG REQUIRED) target_include_directories(main PRIVATE ${RAYLIB_INCLUDE_DIRS}) target_link_libraries(main PRIVATE ${RAYLIB_LIBRARIES})