31 lines
635 B
CMake
31 lines
635 B
CMake
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}/) |