diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2012-12-14 12:00:49 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2012-12-14 12:00:49 (GMT) |
commit | d0c948844f398f291c1d014ff1a2791414b74d9c (patch) | |
tree | c397827fd1dff67cb7bba0ac422a26efe6ace6da /src/tests/CMakeLists.txt | |
parent | dd767425b489541585c526ebfb629538269afd54 (diff) |
Copy example files to build directory and set constants to find them
Diffstat (limited to 'src/tests/CMakeLists.txt')
-rw-r--r-- | src/tests/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 9b9afe5..6747eb6 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -1,5 +1,10 @@ include_directories(${TRAJECTORY_SOURCE_DIR}/src/lib) link_directories(${TRAJECTORY_BINARY_DIR}/src/lib) +set(EXAMPLE_FILES_DIR ${CMAKE_BINARY_DIR}/example_files/ CACHE STRING "Directory where to find input test files and save output files.") + +configure_file(tng_io_testing.h.in ${CMAKE_BINARY_DIR}/generated/tng_io_testing.h) +include_directories(${CMAKE_BINARY_DIR}/generated/) + add_executable(tng_testing tng_io_testing.c) target_link_libraries(tng_testing tng_io)
\ No newline at end of file |