/
CMakeLists.txt
39 lines (36 loc) · 1.1 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
set( TEST_SRCS
src/AbstractConfigurationTest.cpp
src/JSONConfigurationTest.cpp
src/ConfigurationMapperTest.cpp
src/ConfigurationTestSuite.cpp
src/ConfigurationViewTest.cpp
src/Driver.cpp
src/FilesystemConfigurationTest.cpp
src/HelpFormatterTest.cpp
src/IniFileConfigurationTest.cpp
src/LayeredConfigurationTest.cpp
src/LoggingConfiguratorTest.cpp
src/MapConfigurationTest.cpp
src/OptionProcessorTest.cpp
src/OptionSetTest.cpp
src/OptionTest.cpp
src/OptionsTestSuite.cpp
src/PropertyFileConfigurationTest.cpp
src/SystemConfigurationTest.cpp
src/UtilTestSuite.cpp
src/ValidatorTest.cpp
src/XMLConfigurationTest.cpp
src/TimerTestSuite.cpp
src/TimerTest.cpp
)
set( WIN_TEST_SRCS
src/WinConfigurationTest.cpp
src/WinDriver.cpp
src/WinRegistryTest.cpp
src/WindowsTestSuite.cpp
)
set(TESTUNIT "${LIBNAME}-testrunner")
add_executable( ${TESTUNIT} ${TEST_SRCS} )
add_test(NAME ${LIBNAME} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${TESTUNIT} -all)
#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${TESTUNIT} PocoUtil PocoJSON PocoXML PocoFoundation CppUnit)