Commit | Line | Data |
---|---|---|
263b5807 TJ |
1 | include_directories( |
2 | ${CMAKE_SOURCE_DIR}/configlib | |
3 | ${CMAKE_SOURCE_DIR}/src | |
4 | ${CMAKE_SOURCE_DIR}/utils) | |
5 | ||
6 | ########### next target ############### | |
7 | ||
8 | SET(cpp_sources | |
9 | ip_range.cpp | |
10 | stringfunc.cpp | |
11 | test_containerfunc.cpp | |
12 | test_cron_interval.cpp | |
13 | test_cron_point.cpp | |
14 | test_filefunc.cpp | |
15 | test_global_config.cpp | |
16 | test_logging.cpp | |
17 | test_pidfile.cpp | |
18 | test_timefunc.cpp | |
19 | test_tmpfstream.cpp | |
20 | ) | |
21 | ||
22 | add_executable(test_i2ncommon ${cpp_sources}) | |
23 | ||
24 | # Add custom "make check" target which automatically builds the library | |
25 | add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS test_i2ncommon) | |
26 | ||
27 | # Invocation via "make test" | |
28 | enable_testing() | |
29 | add_test(test_i2ncommon test_i2ncommon) | |
30 | ||
31 | target_link_libraries(test_i2ncommon | |
32 | i2ncommon | |
33 | i2ncommon_utils | |
34 | i2ncommon_config | |
35 | ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES} | |
36 | ) |