The package lcms provides CMake targets: find_package(lcms2 CONFIG REQUIRED) target_link_libraries(main PRIVATE lcms2::lcms2)