diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2019-09-24 16:24:47 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2019-10-01 15:58:37 +0300 |
commit | 277f6786d835726c12f6db78d4fe71a9a7010643 (patch) | |
tree | e775776ea181979226ae8a79667d4f140b35b612 /tests/CMakeLists.txt | |
parent | e675a5d5c6022b1a75da02b38d22cf08b6bc5c6f (diff) |
Add tests for sla support and pad creation
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 11bdc4b3d..06733d054 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,13 @@ # TODO Add individual tests as executables in separate directories +# add_subirectory(<testcase>) -# add_subirectory(<testcase>)
\ No newline at end of file +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) |