5 "${CMZLIB_SOURCE_DIR}/.."
6 "${CMZLIB_BINARY_DIR}/.."
9 # Match all headers for dependencies but complain about none.
10 INCLUDE_REGULAR_EXPRESSION("^.*$")
12 # source files for zlib
14 adler32.c compress.c crc32.c deflate.c gzio.c inffast.c
15 inflate.c inftrees.c trees.c uncompr.c zutil.c
18 # for windows add the .def and .rc files to the source list
19 # if building shared libs
26 SET(ZLIB_SRCS ${ZLIB_SRCS} zlib.def zlib.rc )
30 ENDIF(BUILD_SHARED_LIBS)
33 CONFIGURE_FILE(${CMZLIB_SOURCE_DIR}/.NoDartCoverage
34 ${CMZLIB_BINARY_DIR}/.NoDartCoverage)
35 CONFIGURE_FILE(${CMZLIB_SOURCE_DIR}/zlibDllConfig.h.in
36 ${CMZLIB_BINARY_DIR}/zlibDllConfig.h)
38 FOREACH(name zlib zconf cm_zlib_mangle)
39 CONFIGURE_FILE(${CMZLIB_SOURCE_DIR}/${name}.h
40 ${CMZLIB_BINARY_DIR}/${name}.h COPYONLY)
44 ADD_LIBRARY(cmzlib ${ZLIB_SRCS})