2018-11-02 10:57:57 +00:00
|
|
|
# TODO Add individual tests as executables in separate directories
|
2019-09-24 13:24:47 +00:00
|
|
|
# add_subirectory(<testcase>)
|
2018-11-02 10:57:57 +00:00
|
|
|
|
2019-09-24 13:24:47 +00:00
|
|
|
find_package(GTest REQUIRED)
|
|
|
|
|
|
|
|
set(TEST_DATA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/data)
|
|
|
|
file(TO_NATIVE_PATH "${TEST_DATA_DIR}" TEST_DATA_DIR)
|
|
|
|
|
|
|
|
add_library(test_common INTERFACE)
|
|
|
|
target_compile_definitions(test_common INTERFACE TEST_DATA_DIR="${TEST_DATA_DIR}")
|
|
|
|
target_link_libraries(test_common INTERFACE GTest::GTest GTest::Main)
|
|
|
|
|
|
|
|
add_subdirectory(sla_print)
|