summaryrefslogtreecommitdiff
path: root/src/lib/CMakeLists.txt
blob: 416e5467fc58dc0d070212204d73c9244b2c6272 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
add_library(tng_io tng_io.c md5.c)

if(HAVE_INTTYPES_H)
  set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS USE_STD_INTTYPES_H)
endif()

if(TNG_BUILD_FORTRAN)
  set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS TNG_BUILD_FORTRAN)
endif()

if(ZLIB_FOUND)
  set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS USE_ZLIB)
  target_link_libraries(tng_io tng_compress ${ZLIB_LIBRARIES})
else()
  target_link_libraries(tng_io tng_compress)
endif()
contact: Jan Huwald // Impressum