2004-10-19 00:29:58 +04:00
|
|
|
|
|
|
|
# source files for zlib
|
2010-04-06 02:33:58 +04:00
|
|
|
set(ZLIB_SRCS
|
2015-03-16 19:32:23 +03:00
|
|
|
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
|
2004-10-19 00:29:58 +04:00
|
|
|
)
|
|
|
|
|
2010-04-06 02:33:58 +04:00
|
|
|
#######################################################################
|
2014-09-27 04:41:06 +04:00
|
|
|
FL_ADD_LIBRARY(fltk_z STATIC "${ZLIB_SRCS}")
|
2015-02-16 19:29:49 +03:00
|
|
|
# install the zlib headers
|
|
|
|
install(FILES zconf.h;zlib.h;zutil.h
|
|
|
|
DESTINATION ${FLTK_INCLUDEDIR}/FL/images
|
|
|
|
)
|
2004-10-19 00:29:58 +04:00
|
|
|
|
2014-09-27 04:41:06 +04:00
|
|
|
#######################################################################
|
|
|
|
if(OPTION_BUILD_SHARED_LIBS)
|
|
|
|
#######################################################################
|
|
|
|
FL_ADD_LIBRARY(fltk_z SHARED "${ZLIB_SRCS}")
|
2010-04-06 02:33:58 +04:00
|
|
|
|
2014-09-27 04:41:06 +04:00
|
|
|
#######################################################################
|
|
|
|
endif(OPTION_BUILD_SHARED_LIBS)
|
|
|
|
#######################################################################
|