diff options
author | Daniel Spangberg <daniels@kemi.uu.se> | 2013-05-17 17:51:38 (GMT) |
---|---|---|
committer | Daniel Spangberg <daniels@kemi.uu.se> | 2013-05-17 17:51:38 (GMT) |
commit | 47bc4acb6a7373a359b3b3a73302ebd985dedd1b (patch) | |
tree | 562e98b6b14d093a6cecd7c9b26b2c3f99410634 /src/tests/CMakeLists.txt | |
parent | e9d08c77cbf705b012846eb837341b526e1a058b (diff) |
Only add math library on UNIX. Copy .sh files on UNIX. Copy .bat files on windows.
Diffstat (limited to 'src/tests/CMakeLists.txt')
-rw-r--r-- | src/tests/CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 6320769..42de927 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -12,7 +12,9 @@ configure_file(${TRAJECTORY_SOURCE_DIR}/include/tng_io_testing.h.in ${CMAKE_BINA include_directories(${CMAKE_BINARY_DIR}/generated/) add_executable(tng_testing tng_io_testing.c) +if(UNIX) target_link_libraries(tng_testing tng_io m) +endif() if(HAVE_INTTYPES_H) set_target_properties(tng_testing PROPERTIES COMPILE_DEFINITIONS USE_STD_INTTYPES_H=1) @@ -20,14 +22,21 @@ endif() if(OPENMP_FOUND) add_executable(md_openmp md_openmp.c) - target_link_libraries(md_openmp tng_io ${OpenMP_LIBS} m) + target_link_libraries(md_openmp tng_io ${OpenMP_LIBS}) + if(UNIX) + target_link_libraries(md_openmp m) + endif() endif() add_executable(tng_io_read_pos tng_io_read_pos.c) +if(UNIX) target_link_libraries(tng_io_read_pos tng_io m) +endif() add_executable(tng_parallel_read tng_parallel_read.c) +if(UNIX) target_link_libraries(tng_parallel_read tng_io m) +endif() if(BUILD_FORTRAN) # This does not work due to a bug in CMake. Remove lines below if no fortran compiler is found. |