summaryrefslogtreecommitdiff
path: root/deps/utable/test/CMakeLists.txt
blob: 5466fc9ca537b29b14c86dc2af6b4a4d92b8f7c4 (plain)
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
include_directories(${CMAKE_SOURCE_DIR}/deps)

add_executable(gtest_utable
    unit_test_utable.cpp
)

target_link_libraries(
  gtest_utable
  utable
  gtest
)

add_executable(gtest_ipfix_exporter
    unit_test_ipfix_exporter.cpp
)

target_link_libraries(
  gtest_ipfix_exporter
  utable
  gtest
)

file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/conf DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)

include(GoogleTest)
gtest_discover_tests(gtest_utable)

gtest_discover_tests(gtest_ipfix_exporter
    TEST_LIST gtest_ipfix_exporter_tests
)
set_tests_properties(${gtest_ipfix_exporter_tests} PROPERTIES WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/)