-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
49 lines (34 loc) · 1.11 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
46
47
48
49
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(GetCMakeMM)
cmmm(VERSION 2.3 REPOSITORY "flagarde/CMakeMM")
cmmm_modules_list(REPOSITORY "flagarde/CMakeCM")
option(BUILD_DOCS "Build the docs" ON)
option(BUILD_EXAMPLES "Build the examples" ON)
option(BUILD_TESTS "Build the tests" ON)
project(YAODAQ VERSION 0.1 DESCRIPTION "Yet An Other DAQ" HOMEPAGE_URL "https://github.com/yaodaq/YAODAQ" LANGUAGES C CXX)
set(SEMVER_PRERELEASE "alpha")
set(SEMVER_PRERELEASE_NUMBER "1")
set(PROJECT_ONLINE_DOCUMENTATION "https://yaodaq.github.io/YAODAQ")
include(PreventInSourceBuilds)
prevent_in_source_builds()
include(DefaultInstallPrefix)
default_install_prefix("${CMAKE_SOURCE_DIR}/install")
include(ThirdPartyLicenses)
include(DefaultConfigurations)
set_default_configuration(CONFIGS AllWarnings)
include(Standards)
cxx_17()
c_11()
add_subdirectory(src)
add_subdirectory(apps)
if(BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
endif()
if(BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
if(BUILD_DOCS)
add_subdirectory(docs)
endif()