2022-03-11 23:12:10 +01:00
|
|
|
find_package(GTest)
|
|
|
|
|
|
|
|
if (${GTest_FOUND})
|
|
|
|
include(GoogleTest)
|
|
|
|
|
2022-03-12 00:08:38 +01:00
|
|
|
add_executable(csv_test csv.cc)
|
|
|
|
target_link_libraries(csv_test PRIVATE common_options)
|
2022-03-11 23:12:10 +01:00
|
|
|
|
2022-03-12 00:08:38 +01:00
|
|
|
target_link_libraries(csv_test PRIVATE
|
|
|
|
csv
|
2022-03-11 23:12:10 +01:00
|
|
|
GTest::gtest
|
|
|
|
GTest::gtest_main
|
|
|
|
)
|
|
|
|
|
2022-03-12 00:08:38 +01:00
|
|
|
gtest_discover_tests(csv_test)
|
2022-03-12 03:32:21 +01:00
|
|
|
|
|
|
|
add_executable(parse_test parse.cc)
|
|
|
|
target_link_libraries(parse_test PRIVATE common_options)
|
|
|
|
|
|
|
|
target_link_libraries(parse_test PRIVATE
|
|
|
|
parse
|
|
|
|
GTest::gtest
|
|
|
|
GTest::gtest_main
|
|
|
|
)
|
|
|
|
|
|
|
|
gtest_discover_tests(parse_test)
|
|
|
|
|
2022-03-12 10:46:23 +01:00
|
|
|
add_executable(engine_test engine.cc)
|
|
|
|
target_link_libraries(engine_test PRIVATE common_options)
|
|
|
|
|
|
|
|
target_link_libraries(engine_test PRIVATE
|
|
|
|
engine
|
|
|
|
parse
|
|
|
|
GTest::gtest
|
|
|
|
GTest::gtest_main
|
|
|
|
)
|
|
|
|
|
|
|
|
gtest_discover_tests(engine_test)
|
|
|
|
|
2022-03-11 23:12:10 +01:00
|
|
|
endif (${GTest_FOUND})
|