qdldl provides CMake targets: find_package(qdldl CONFIG REQUIRED) target_link_libraries(main PRIVATE $,qdldl::qdldl,qdldl::qdldlstatic>)