-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (23 loc) · 869 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required(VERSION 3.20)
project(ctr)
add_library(ctr_headers INTERFACE)
target_include_directories(ctr_headers INTERFACE include)
set_target_properties(ctr_headers PROPERTIES
CXX_STANDARD 20
CXX_STANDARD_REQUIRED Yes
CXX_EXTENSIONS No)
add_subdirectory(src)
find_package(Doxygen)
if (DOXYGEN_FOUND)
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
configure_file(Doxyfile.in ${DOXYGEN_OUT} @ONLY)
message("Adding docs target")
add_custom_target(docs ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating docs"
VERBATIM)
else()
message("Could not find doxygen - docs target is not available")
endif()
configure_file(test/util/test.config.py.in ${CMAKE_CURRENT_BINARY_DIR}/test.py @ONLY)