-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (29 loc) · 1.01 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
cmake_minimum_required (VERSION 3.10.2)
project (PARSE_ENVIRON)
include (CTest)
add_executable (parse_environ_get_next_kv.test parse_environ_get_next_kv.test.c)
add_executable (parse_environ_load_proc_env.test parse_environ_load_proc_env.test.c)
target_compile_options(parse_environ_get_next_kv.test INTERFACE
-O0
-g
--coverage
-fprofile-arcs
-ftest-coverage
)
target_compile_options(parse_environ_load_proc_env.test INTERFACE
-O0
-g
--coverage
-fprofile-arcs
-ftest-coverage
)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13)
target_link_options(parse_environ_get_next_kv.test INTERFACE --coverage)
target_link_options(parse_environ_load_proc_env.test INTERFACE --coverage)
else()
target_link_libraries(parse_environ_get_next_kv.test INTERFACE --coverage)
target_link_libraries(parse_environ_load_proc_env.test INTERFACE --coverage)
endif()
enable_testing()
add_test (parse_environ_get_next_kv parse_environ_get_next_kv.test)
add_test (parse_environ_load_proc_env parse_environ_load_proc_env.test)