summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-12-16 16:35:56 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-12-16 16:37:19 (GMT)
commitf5499d079b621a0ef75bb3c0dbf79b32309935d9 (patch)
tree060c4d408987b068c60085a8dbc30f0e13286c19 /src/tests
parent171d7ec5d4bc344f3dc078eb37bbcaf88672e17c (diff)
Copy example_files dir to the bin/tests directory.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 3d21a5d..a0cfc46 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -4,7 +4,7 @@ endif()
link_directories(${TNG_IO_BINARY_DIR}/src/lib)
-add_definitions(-DTNG_EXAMPLE_FILES_DIR="${CMAKE_BINARY_DIR}/example_files/") # Directory where to find input test files and save output files.
+add_definitions(-DTNG_EXAMPLE_FILES_DIR="${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tests/example_files/") # Directory where to find input test files and save output files.
if(TNG_BUILD_TEST)
add_executable(tng_testing tng_io_testing.c)
@@ -17,6 +17,8 @@ if(TNG_BUILD_TEST)
set_property(TARGET tng_testing APPEND PROPERTY COMPILE_DEFINITIONS USE_STD_INTTYPES_H=1)
endif()
+ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../../example_files DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tests/)
+
set_property(TARGET tng_testing PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tests)
endif()
contact: Jan Huwald // Impressum