mirror of https://github.com/fltk/fltk.git
FLTK - Fast Light Tool Kit - https://github.com/fltk/fltk - cross platform GUI development
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
758 B
30 lines
758 B
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} |
|
)
|
|
|