diff options
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmzlib/CMakeLists.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Utilities/cmzlib/CMakeLists.txt b/Utilities/cmzlib/CMakeLists.txt new file mode 100644 index 0000000..ba4bbcb --- /dev/null +++ b/Utilities/cmzlib/CMakeLists.txt @@ -0,0 +1,25 @@ +project(cmzlib C) + +# Disable warnings to avoid changing 3rd party code. +if(CMAKE_C_COMPILER_ID MATCHES + "^(GNU|LCC|Clang|AppleClang|IBMClang|XLClang|XL|VisualAge|SunPro|HP|Intel|IntelLLVM|NVHPC)$") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") +elseif(CMAKE_C_COMPILER_ID STREQUAL "PathScale") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall") +endif() + +add_library(cmzlib + adler32.c + compress.c + crc32.c + deflate.c + gzio.c + inffast.c + inflate.c + inftrees.c + trees.c + uncompr.c + zutil.c + ) + +install(FILES Copyright.txt DESTINATION ${CMAKE_DOC_DIR}/cmzlib) |