Fix for data dir path on windows
This commit is contained in:
parent
cf777ec09c
commit
51f26f9483
@ -11,7 +11,7 @@ add_library(Catch2::Catch2 ALIAS Catch2)
|
||||
include(Catch)
|
||||
|
||||
add_library(test_catch2_common INTERFACE)
|
||||
target_compile_definitions(test_catch2_common INTERFACE TEST_DATA_DIR="${TEST_DATA_DIR}")
|
||||
target_compile_definitions(test_catch2_common INTERFACE TEST_DATA_DIR=R"\(${TEST_DATA_DIR}\)")
|
||||
target_link_libraries(test_catch2_common INTERFACE Catch2::Catch2)
|
||||
|
||||
add_library(test_common INTERFACE)
|
||||
@ -24,7 +24,7 @@ target_link_libraries(test_common INTERFACE test_catch2_common)
|
||||
# DEPRECATED:
|
||||
find_package(GTest REQUIRED)
|
||||
add_library(test_gtest_common INTERFACE)
|
||||
target_compile_definitions(test_gtest_common INTERFACE TEST_DATA_DIR="${TEST_DATA_DIR}")
|
||||
target_compile_definitions(test_gtest_common INTERFACE TEST_DATA_DIR=R"\(${TEST_DATA_DIR}\)")
|
||||
target_link_libraries(test_gtest_common INTERFACE GTest::GTest GTest::Main)
|
||||
|
||||
add_subdirectory(libnest2d)
|
||||
|
Loading…
Reference in New Issue
Block a user