git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
25 lines
821 B
CMake
25 lines
821 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
|
|
inffast.c infback.c inflate.c inftrees.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)
|
|
#######################################################################
|