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})