kraken-assessment/tests/unit/CMakeLists.txt

17 lines
287 B
CMake
Raw Normal View History

2022-03-11 23:12:10 +01:00
find_package(GTest)
if (${GTest_FOUND})
include(GoogleTest)
add_executable(csv_test csv.cc)
target_link_libraries(csv_test PRIVATE common_options)
2022-03-11 23:12:10 +01:00
target_link_libraries(csv_test PRIVATE
csv
2022-03-11 23:12:10 +01:00
GTest::gtest
GTest::gtest_main
)
gtest_discover_tests(csv_test)
2022-03-11 23:12:10 +01:00
endif (${GTest_FOUND})