liblas provides CMake targets: # C API find_package(libLAS CONFIG REQUIRED) target_link_libraries(main PRIVATE $<$:lib>las_c) # C++ API find_package(libLAS CONFIG REQUIRED) target_link_libraries(main PRIVATE $<$:lib>las)