-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
40 lines (33 loc) · 1.09 KB
/
CMakeLists.txt
File metadata and controls
40 lines (33 loc) · 1.09 KB
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
32
33
34
35
36
37
38
39
40
cmake_minimum_required(VERSION 3.15)
project(ROOT VERSION 0.0.1
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
option(TEST "Turn on testing with googletest" OFF)
if(TEST)
if(EXISTS "external/googletest")
if(EXISTS "external/googletest/CMakeLists.txt")
add_subdirectory(external/googletest)
include(CTest)
else()
message(FATAL_ERROR "external/googletest/CMakeLists.txt not found; update git submodules")
endif()
else()
message(FATAL_ERROR "external/googletest not found; create a new git submodule")
endif()
find_package(Gnuplot REQUIRED)
endif()
find_package(Doxygen)
if(DOXYGEN_FOUND)
doxygen_add_docs(doc
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Generating documentation with Doxygen"
CONFIG_FILE ${CMAKE_SOURCE_DIR}/Doxyfile
)
else()
message(STATUS "Doxygen not found; 'doc' target will be unavailable")
endif()
add_subdirectory(external/eigen)
add_subdirectory(external/CLI11)
add_subdirectory(libROOT)
add_subdirectory(ROOT)