To use CXXGraph header files: find_path(CXXGRAPH_INCLUDE_DIR cxxgraph/CXXGraph.hpp) target_include_directories(main PRIVATE ${CXXGRAPH_INCLUDE_DIR})