a0d26b634a
than what we had previously, but may need some more testing. The latest changes (removing old APPLE_QD definitions and code) might need another update. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7451 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
31 lines
758 B
CMake
31 lines
758 B
CMake
project(FLTKZLIB)
|
|
include_regular_expression(regex_match "[.][h|c]$")
|
|
|
|
include_directories(${FLTKZLIB_SOURCE_DIR})
|
|
include_directories(${FLTKZLIB_BINARY_DIR})
|
|
|
|
# source files for zlib
|
|
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
|
|
)
|
|
|
|
#######################################################################
|
|
add_library(fltk_z ${ZLIB_SRCS})
|
|
|
|
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}
|
|
)
|