-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
47 lines (38 loc) · 873 Bytes
/
CMakeLists.txt
File metadata and controls
47 lines (38 loc) · 873 Bytes
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
cmake_minimum_required(VERSION 4.1.1)
project(
cth
LANGUAGES CXX
VERSION 1.0.0
)
include(cth_setup_utilities)
include(cth_target_utilities)
include(cth_install_utilities)
cth_set_compiler_specifics()
cth_set_latest_c_cpp_standard()
set(CMAKE_CXX_SCAN_FOR_MODULES FALSE)
set(CMAKE_C_COMPILER_LAUNCHER "buildcache")
set(CMAKE_CXX_COMPILER_LAUNCHER "buildcache")
# exported
add_subdirectory(cth)
add_subdirectory(cth_win)
add_subdirectory(cth_coro)
# add_subdirectory(cth_cthm) just a test and not up to date
cth_create_package()
# test
if(CTH_ENABLE_TESTS)
enable_testing()
add_subdirectory(integration_tests)
endif()
# formatting
cth_glob_cpp(
FORMAT_FILES
"cth"
"cth_coro"
"cth_cthm"
"cth_win"
"integration_tests"
"playground"
)
#cth_add_uncrustify_target(uncrustify-format OPTIONAL ${FORMAT_FILES})
# playground
add_subdirectory(playground)