summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-14 13:40:40 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-14 13:40:40 (GMT)
commit57f20744bd46582bfb9e4586da1abb1572cc565f (patch)
treeea406c944d5e30aa06da584885d40131dfc03f2d /src
parenta5e759e229807d7d95a3dddcd8561208d80a2fde (diff)
Add option to build TNG testing binary.
Diffstat (limited to 'src')
-rw-r--r--src/tests/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 13e7d88..71e5074 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -13,10 +13,12 @@ set(EXAMPLE_FILES_DIR ${CMAKE_BINARY_DIR}/example_files/ CACHE STRING "Directory
configure_file(${TNG_IO_SOURCE_DIR}/include/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)
-if(UNIX)
-target_link_libraries(tng_testing m)
+if(TNG_BUILD_TEST)
+ add_executable(tng_testing tng_io_testing.c)
+ target_link_libraries(tng_testing tng_io)
+ if(UNIX)
+ target_link_libraries(tng_testing m)
+ endif()
endif()
if(HAVE_INTTYPES_H)
contact: Jan Huwald // Impressum