gcontini
2020-11-17 f7f0ba4206bfc30d4f9727a0e2448ee43cba6aad
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
add_executable( test_network
 network_test.cpp
 "network_test.cpp")
 
target_link_libraries( test_network
 licensecc_static
 Boost::unit_test_framework 
 Boost::filesystem
 Boost::system
)
 
ADD_TEST(NAME test_network COMMAND test_network)
 
IF(NOT DEFINED MINGW)
    add_executable( test_dmi_info dmi_info_test.cpp "dmi_info_test.cpp")
    target_link_libraries( test_dmi_info
         licensecc_static
         Boost::unit_test_framework 
         Boost::filesystem
         Boost::system
    )
    ADD_TEST(NAME test_dmi_info COMMAND test_dmi_info)
ENDIF(NOT DEFINED MINGW)
 
add_executable( test_execution_environment
     execution_environment_test.cpp
)
 
target_link_libraries( test_execution_environment
 licensecc_static
 Boost::unit_test_framework 
 Boost::filesystem
 Boost::system
)
 
ADD_TEST(NAME test_execution_environment COMMAND test_execution_environment)
 
if(CODE_COVERAGE AND UNIX)
    IF(NOT DEFINED MINGW)
        target_compile_options(test_dmi_info PUBLIC -O0 -g --coverage)
    ENDIF(NOT DEFINED MINGW)
    
    target_compile_options(test_execution_environment PUBLIC -O0 -g --coverage)
    target_compile_options(test_network PUBLIC -O0 -g --coverage)
endif(CODE_COVERAGE AND UNIX)