summaryrefslogtreecommitdiffstats
path: root/Utilities/cmzlib/CMakeLists.txt
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-26 20:55:12 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-26 20:55:12 (GMT)
commit0e4571d25c0f5ef1407c3678521ea26a6fc71f1f (patch)
treea3eafcef58d9b123a0046bc0fbdab5bdb6555889 /Utilities/cmzlib/CMakeLists.txt
parent483534f1a3274da6c200a9471fec116b55274900 (diff)
downloadCMake-0e4571d25c0f5ef1407c3678521ea26a6fc71f1f.zip
CMake-0e4571d25c0f5ef1407c3678521ea26a6fc71f1f.tar.gz
CMake-0e4571d25c0f5ef1407c3678521ea26a6fc71f1f.tar.bz2
ENH: Initial import from VTK
Diffstat (limited to 'Utilities/cmzlib/CMakeLists.txt')
-rw-r--r--Utilities/cmzlib/CMakeLists.txt40
1 files changed, 40 insertions, 0 deletions
diff --git a/Utilities/cmzlib/CMakeLists.txt b/Utilities/cmzlib/CMakeLists.txt
new file mode 100644
index 0000000..1c8c6e5
--- /dev/null
+++ b/Utilities/cmzlib/CMakeLists.txt
@@ -0,0 +1,40 @@
+PROJECT(CMZLIB)
+INCLUDE_REGULAR_EXPRESSION("^(deflate|inf|trees|zconf|zlib|zutil).*$")
+
+INCLUDE_DIRECTORIES(${CMZLIB_SOURCE_DIR})
+
+# source files for zlib
+SET(ZLIB_SRCS
+ adler32.c gzio.c inftrees.c uncompr.c
+ compress.c infblock.c infutil.c zutil.c
+ crc32.c infcodes.c
+ deflate.c inffast.c
+ inflate.c trees.c
+ )
+
+# for windows add the .def and .rc files to the source list
+IF(WIN32)
+ IF(BUILD_SHARED_LIBS)
+ SET(ZLIB_DLL 1)
+ ENDIF(BUILD_SHARED_LIBS)
+ IF(NOT UNIX)
+ IF(NOT BORLAND)
+ IF(NOT MINGW)
+ SET(ZLIB_SRCS ${ZLIB_SRCS} zlib.def zlib.rc )
+ ENDIF(NOT MINGW)
+ ENDIF(NOT BORLAND)
+ ENDIF(NOT UNIX)
+ENDIF(WIN32)
+
+CONFIGURE_FILE(${CMZLIB_SOURCE_DIR}/.NoDartCoverage
+ ${CMZLIB_BINARY_DIR}/.NoDartCoverage)
+CONFIGURE_FILE(${CMZLIB_SOURCE_DIR}/zlibDllConfig.h.in
+ ${CMZLIB_BINARY_DIR}/zlibDllConfig.h)
+
+FOREACH(name zlib zconf cm_zlib_mangle)
+ CONFIGURE_FILE(${CMZLIB_SOURCE_DIR}/${name}.h
+ ${CMZLIB_BINARY_DIR}/${name}.h COPYONLY)
+ENDFOREACH(name)
+
+
+ADD_LIBRARY(cmzlib ${ZLIB_SRCS})