2010-04-06 02:33:58 +04:00
|
|
|
project(FLTKZLIB)
|
|
|
|
include_regular_expression(regex_match "[.][h|c]$")
|
2004-10-19 00:29:58 +04:00
|
|
|
|
2010-04-06 02:33:58 +04:00
|
|
|
include_directories(${FLTKZLIB_SOURCE_DIR})
|
|
|
|
include_directories(${FLTKZLIB_BINARY_DIR})
|
2004-10-19 00:29:58 +04:00
|
|
|
|
|
|
|
# source files for zlib
|
2010-04-06 02:33:58 +04:00
|
|
|
set(ZLIB_SRCS
|
|
|
|
adler32.c compress.c crc32.c deflate.c gzio.c inffast.c
|
|
|
|
inflate.c inftrees.c trees.c uncompr.c zutil.c
|
2004-10-19 00:29:58 +04:00
|
|
|
)
|
|
|
|
|
2010-04-06 02:33:58 +04:00
|
|
|
#######################################################################
|
|
|
|
add_library(fltk_z ${ZLIB_SRCS})
|
2004-10-19 00:29:58 +04:00
|
|
|
|
2010-04-06 02:33:58 +04:00
|
|
|
if(MSVC)
|
|
|
|
set_target_properties(fltk_z
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME zlib
|
|
|
|
DEBUG_OUTPUT_NAME zlibd
|
|
|
|
)
|
|
|
|
if(OPTION_LARGE_FILE)
|
|
|
|
set_target_properties(fltk_z PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE)
|
|
|
|
endif(OPTION_LARGE_FILE)
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
install(TARGETS fltk_z
|
|
|
|
EXPORT fltk-install
|
|
|
|
DESTINATION ${PREFIX_LIB}
|
|
|
|
)
|