summaryrefslogtreecommitdiff
path: root/src/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-03-19 16:23:32 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-03-19 16:23:32 (GMT)
commitb97f4dff0e286abe9dfe6e9c14e988274541e974 (patch)
treef9f61465b68ecf2151c633ce8543db163aa58798 /src/tests/CMakeLists.txt
parent30c94e0da4ffc0c7017c981b7305d855feea5441 (diff)
If inttypes is not found (Visual Studio) some typedefs and defines need to be done
Diffstat (limited to 'src/tests/CMakeLists.txt')
-rw-r--r--src/tests/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 8ec785b..4a63c54 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -13,6 +13,10 @@ include_directories(${CMAKE_BINARY_DIR}/generated/)
add_executable(tng_testing tng_io_testing.c)
target_link_libraries(tng_testing tng_io)
+if(HAVE_INTTYPES_H)
+ set_target_properties(tng_testing PROPERTIES COMPILE_DEFINITIONS USE_STD_INTTYPES_H=1)
+endif()
+
if(OPENMP_FOUND)
add_executable(md_openmp md_openmp.c)
target_link_libraries(md_openmp tng_io ${OpenMP_LIBS} m)
contact: Jan Huwald // Impressum