Revision 363c6c182d7c2f47e784088b7961f77458912912 authored by Max Göttlicher on 09 August 2022, 11:52:28 UTC, committed by Max Göttlicher on 09 August 2022, 11:52:28 UTC
1 parent 655a80d
CMakeLists.txt
cmake_minimum_required(VERSION 3.24)
project(setgraph)
set(CMAKE_CXX_STANDARD 20)
include(FetchContent)
FetchContent_Declare(
unordered_dense
GIT_REPOSITORY https://github.com/martinus/unordered_dense.git
GIT_TAG 94156450d991515faa07ccd3823a2592c000e49f
)
FetchContent_MakeAvailable(unordered_dense)
find_package(range-v3 REQUIRED)
get_directory_property(SETGRAPH_PARENT_DIRECTORY PARENT_DIRECTORY)
mark_as_advanced(SETGRAPH_PARENT_DIRECTORY)
set(SETGRAPH_CREATE_DOC On CACHE BOOL "add documentation target")
if(SETGRAPH_PARENT_DIRECTORY)
set(SETGRAPH_CREATE_DOC Off)
endif()
if(SETGRAPH_CREATE_DOC)
find_package(Doxygen)
set(DOXYGEN_JAVADOC_AUTOBRIEF ON)
doxygen_add_docs(doc include)
endif()
add_library(setgraph INTERFACE test/testBoostIntegration.cpp)
target_include_directories(setgraph INTERFACE include)
target_link_libraries(setgraph INTERFACE range-v3 unordered_dense::unordered_dense)
find_package(Boost COMPONENTS graph)
if (Boost_GRAPH_FOUND)
add_library(setgraph-boost INTERFACE)
target_link_libraries(setgraph-boost INTERFACE setgraph Boost::graph)
else()
message("boost graph not found")
endif()
enable_testing()
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
add_subdirectory(test)
Computing file changes ...