2010-04-05 22:33:58 +00:00
|
|
|
project(FLTKPNG)
|
|
|
|
include_regular_expression("^png.*[.][c|h]$")
|
2004-10-18 20:29:58 +00:00
|
|
|
|
2010-04-05 22:33:58 +00:00
|
|
|
include_directories(${FLTKZLIB_SOURCE_DIR})
|
|
|
|
include_directories(${ZLIB_INCLUDE_DIR})
|
2004-10-18 20:29:58 +00:00
|
|
|
|
2010-04-05 22:33:58 +00:00
|
|
|
include_directories(${FLTKPNG_SOURCE_DIR})
|
|
|
|
include_directories(${FLTKPNG_BINARY_DIR})
|
2004-10-18 20:29:58 +00:00
|
|
|
|
|
|
|
# source files for png
|
2010-04-05 22:33:58 +00:00
|
|
|
set(PNG_SRCS
|
2005-02-24 20:26:22 +00:00
|
|
|
pngget.c pngrio.c pngwrite.c
|
|
|
|
png.c pngmem.c pngrtran.c pngtrans.c pngwtran.c
|
|
|
|
pngerror.c pngpread.c pngrutil.c pngwutil.c
|
|
|
|
pngread.c pngset.c pngwio.c
|
2010-04-05 22:33:58 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
add_library(fltk_png ${PNG_SRCS})
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
set_target_properties(fltk_png PROPERTIES OUTPUT_NAME fltkpng)
|
|
|
|
if(OPTION_LARGE_FILE)
|
|
|
|
set_target_properties(fltk_png PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE)
|
|
|
|
endif(OPTION_LARGE_FILE)
|
|
|
|
else()
|
|
|
|
set_target_properties(fltk_png PROPERTIES OUTPUT_NAME fltk_png)
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
target_link_libraries(fltk_png ${FLTK_ZLIB_LIBRARIES})
|
|
|
|
|
|
|
|
install(TARGETS fltk_png
|
|
|
|
EXPORT fltk-install
|
|
|
|
DESTINATION ${PREFIX_LIB}
|
|
|
|
)
|