diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-05-22 12:58:40 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-05-22 12:58:40 (GMT) |
commit | 98900c813d6b037a3931c60836a1df0405e1d6c5 (patch) | |
tree | ced597db7d76115d99dd5159b78aef1bbe33a645 /src/tests/compression | |
parent | 74c11f5f2026bb02385763fd96d41d1d6a5f989c (diff) |
Added building options and bin subdirectories
Options to determine whether to build examples (on) and compression
tests (off).
Place binaries in subdirectories.
Diffstat (limited to 'src/tests/compression')
-rw-r--r-- | src/tests/compression/CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tests/compression/CMakeLists.txt b/src/tests/compression/CMakeLists.txt index 930bcfc..1325474 100644 --- a/src/tests/compression/CMakeLists.txt +++ b/src/tests/compression/CMakeLists.txt @@ -24,6 +24,7 @@ list(APPEND gen${number}_build_definitions GEN) list(APPEND gen${number}_build_definitions TESTPARAM="test${number}.h") set_target_properties(test_tng_compress_gen${number} PROPERTIES COMPILE_DEFINITIONS "${gen${number}_build_definitions}") add_dependencies(test_tng_compress_gen${number} test${number}.h) +set_property(TARGET test_tng_compress_gen${number} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/compression_tests) add_executable(test_tng_compress_read${number} testsuite.c) target_link_libraries(test_tng_compress_read${number} tng_compress) @@ -33,14 +34,15 @@ endif() list(APPEND read${number}_build_definitions TESTPARAM="test${number}.h") set_target_properties(test_tng_compress_read${number} PROPERTIES COMPILE_DEFINITIONS "${read${number}_build_definitions}") add_dependencies(test_tng_compress_read${number} test${number}.h) +set_property(TARGET test_tng_compress_read${number} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/compression_tests) endwhile() if(UNIX) -file(COPY test_tng_compress_write.sh DESTINATION ${CMAKE_BINARY_DIR}/bin) -file(COPY test_tng_compress_read.sh DESTINATION ${CMAKE_BINARY_DIR}/bin) +file(COPY test_tng_compress_write.sh DESTINATION ${CMAKE_BINARY_DIR}/bin/compression_tests) +file(COPY test_tng_compress_read.sh DESTINATION ${CMAKE_BINARY_DIR}/bin/compression_tests) endif() if(WIN32) -file(COPY test_tng_compress_write.bat DESTINATION ${CMAKE_BINARY_DIR}/bin) -file(COPY test_tng_compress_read.bat DESTINATION ${CMAKE_BINARY_DIR}/bin) +file(COPY test_tng_compress_write.bat DESTINATION ${CMAKE_BINARY_DIR}/bin/compression_tests) +file(COPY test_tng_compress_read.bat DESTINATION ${CMAKE_BINARY_DIR}/bin/compression_tests) endif() |