diff options
Diffstat (limited to 'src/lib/CMakeLists.txt')
-rw-r--r-- | src/lib/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index b12bb42..b6fd655 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -1,2 +1,6 @@ add_library(tng_io SHARED tng_io.c md5.c) +if(ZLIB_FOUND) + set_target_properties(tng_io PROPERTIES COMPILE_DEFINITIONS USE_ZLIB=1) + target_link_libraries(tng_io ${ZLIB_LIBRARIES}) +endif() |