ed339a8b35
Source: http://zlib.net/ Current release: zlib 1.2.8 April 28, 2013. Update note: not all files included in zlib are also included in FLTK's zlib version. However, there are only two files that are different from the original zlib versions: - zlib/CMakeLists.txt - zlib/Makefile git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
36 lines
869 B
CMake
36 lines
869 B
CMake
|
|
# source files for zlib
|
|
set(ZLIB_SRCS
|
|
adler32.c
|
|
compress.c
|
|
crc32.c
|
|
deflate.c
|
|
gzclose.c
|
|
gzlib.c
|
|
gzread.c
|
|
gzwrite.c
|
|
inflate.c
|
|
infback.c
|
|
inftrees.c
|
|
inffast.c
|
|
trees.c
|
|
uncompr.c
|
|
zutil.c
|
|
)
|
|
|
|
#######################################################################
|
|
FL_ADD_LIBRARY(fltk_z STATIC "${ZLIB_SRCS}")
|
|
# install the zlib headers
|
|
install(FILES zconf.h;zlib.h;zutil.h
|
|
DESTINATION ${FLTK_INCLUDEDIR}/FL/images
|
|
)
|
|
|
|
#######################################################################
|
|
if(OPTION_BUILD_SHARED_LIBS)
|
|
#######################################################################
|
|
FL_ADD_LIBRARY(fltk_z SHARED "${ZLIB_SRCS}")
|
|
|
|
#######################################################################
|
|
endif(OPTION_BUILD_SHARED_LIBS)
|
|
#######################################################################
|