-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (32 loc) · 887 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
32
33
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 3.28)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
include(option_settings)
set(ENV{CMAKE_ENABLE_TEST} ${ENABLE_TEST})
project(
SRS-DAQ
VERSION 0.1.3
LANGUAGES CXX C)
if(BUILD_ONLY_DOC)
add_subdirectory(doc)
else()
if(BUILD_DOC)
add_subdirectory(doc)
endif()
include(install_config)
include(project_config)
include(check_compilers)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_EXTENSIONS ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_SCAN_FOR_MODULES OFF)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
list(APPEND CMAKE_CXX_FLAGS "-fexperimental-library")
endif()
include(import_packages)
add_subdirectory(frontend)
add_subdirectory(backend)
add_subdirectory(examples)
if(ENABLE_TEST)
add_subdirectory(test)
endif()
endif()