-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (32 loc) · 1.22 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.15)
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# Download CMakeCM and include it as soon as possible
include(GetCMakeMM)
cmmm(VERSION "2.3" REPOSITORY "flagarde/CMakeMM" VERBOSITY VERBOSE)
cmmm_modules_list(PROVIDER github REPOSITORY "SDHCAL/CMakeModules" BRANCH main DESTINATION "Modules")
project(geometry_reader VERSION "0.1.0" DESCRIPTION "C++ library to read the SDHCAL geometry" HOMEPAGE_URL "https://github.com/SDHCAL/geometry_reader" LANGUAGES CXX)
set(SEMVER_PRERELEASE "beta")
set(SEMVER_PRERELEASE_NUMBER "1")
include(DefaultInstallPrefix)
default_install_prefix("${CMAKE_SOURCE_DIR}/binaries")
set(CMAKE_MACOSX_RPATH TRUE)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH}" "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
include(Standards)
cxx_17()
option(BUILD_TESTS "Build the test" ON)
option(BUILD_APPS "Build the apps" ON)
option(BUILD_DOCS "Build the docs" OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_subdirectory(libs)
if(BUILD_APPS)
add_subdirectory(apps)
endif()
if(BUILD_DOCS)
add_subdirectory(docs)
endif()
if(BUILD_TESTS)
include(CTest)
include(Doctest)
add_subdirectory(tests)
endif()