diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/CMakeLists.txt | 10 |
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) |