diff options
author | Brad King <brad.king@kitware.com> | 2022-05-26 15:19:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-05-26 16:29:41 (GMT) |
commit | 87b304f64920dce0ea303c036510c94bc240b9b9 (patch) | |
tree | de533be4a0fe32087d03d192e8822ed91b88934b /Utilities | |
parent | b0d97aeea5fae4e4bb2e9199bf8e267f7b2c3f8f (diff) | |
download | CMake-87b304f64920dce0ea303c036510c94bc240b9b9.zip CMake-87b304f64920dce0ea303c036510c94bc240b9b9.tar.gz CMake-87b304f64920dce0ea303c036510c94bc240b9b9.tar.bz2 |
zlib: Add CMakeLists.txt for build within CMake
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) |