diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2019-10-02 15:55:02 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2019-10-02 15:55:16 +0300 |
commit | 8ca7e56d0f641c89ca82306f6616d6f9d926aa12 (patch) | |
tree | 7e28f3944df66f8ecd4d72c06dc639c7b2c3f989 /tests/CMakeLists.txt | |
parent | be7428d66ecb0827676f230db86fad6300e1cc7d (diff) |
Fix tests on all platforms
Try to link tests on Mac.
Fix inaccurate pad brim size
fix build on mac (attempt 2)
Fixes for support tree faults and race conditions in release mode.
Fix crashing test executable on gcc 4.9
fix warning on msvc
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 06733d054..fcd70d636 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -7,7 +7,10 @@ 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_compile_definitions(test_common INTERFACE TEST_DATA_DIR=R"\(${TEST_DATA_DIR}\)") target_link_libraries(test_common INTERFACE GTest::GTest GTest::Main) +if (APPLE) + target_link_libraries(test_common INTERFACE "-liconv -framework IOKit" "-framework CoreFoundation" -lc++) +endif() add_subdirectory(sla_print) |