-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (39 loc) · 1.17 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)
project(hanlib CXX)
enable_testing()
add_executable(test-maybe test.cc)
target_compile_features(test-maybe PRIVATE cxx_std_17)
target_include_directories(test-maybe PRIVATE include)
target_compile_options(test-maybe PRIVATE
-Weverything
-Werror
-pedantic
-pedantic-errors
-Wno-c++98-compat
-Wno-c++98-compat-pedantic
-Wno-c99-extensions
-Wno-global-constructors
-Wno-exit-time-destructors
-Wno-missing-variable-declarations
-Wno-padded
-Wno-ctad-maybe-unsupported
-Wno-c++2a-extensions)
add_test(test-maybe test-maybe)
add_executable(test-maybe-copies test-copies.cc)
target_compile_features(test-maybe-copies PRIVATE cxx_std_17)
target_include_directories(test-maybe-copies PRIVATE include)
target_compile_options(test-maybe-copies PRIVATE
-Weverything
-Werror
-pedantic
-pedantic-errors
-Wno-c++98-compat
-Wno-c++98-compat-pedantic
-Wno-c99-extensions
-Wno-global-constructors
-Wno-exit-time-destructors
-Wno-missing-variable-declarations
-Wno-padded
-Wno-ctad-maybe-unsupported
-Wno-c++2a-extensions)
add_test(test-maybe-copies test-maybe-copies)