2004-10-19 00:29:58 +04:00
|
|
|
|
2012-05-29 18:08:40 +04:00
|
|
|
# source files for png
|
|
|
|
set(PNG_SRCS
|
|
|
|
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-06 02:33:58 +04:00
|
|
|
)
|
|
|
|
|
2012-05-29 18:08:40 +04:00
|
|
|
#######################################################################
|
2014-09-27 04:41:06 +04:00
|
|
|
FL_ADD_LIBRARY(fltk_png STATIC "${PNG_SRCS}")
|
2010-04-06 02:33:58 +04:00
|
|
|
|
2014-09-27 04:41:06 +04:00
|
|
|
if(OPTION_USE_SYSTEM_ZLIB)
|
|
|
|
target_link_libraries(fltk_png ${FLTK_ZLIB_LIBRARIES})
|
2012-05-29 18:08:40 +04:00
|
|
|
else()
|
2014-09-27 04:41:06 +04:00
|
|
|
target_link_libraries(fltk_png fltk_z)
|
|
|
|
endif(OPTION_USE_SYSTEM_ZLIB)
|
2010-04-06 02:33:58 +04:00
|
|
|
|
2014-09-27 04:41:06 +04:00
|
|
|
#######################################################################
|
|
|
|
if(OPTION_BUILD_SHARED_LIBS)
|
|
|
|
#######################################################################
|
|
|
|
FL_ADD_LIBRARY(fltk_png SHARED "${PNG_SRCS}")
|
2010-04-06 02:33:58 +04:00
|
|
|
|
2014-09-27 04:41:06 +04:00
|
|
|
if(OPTION_USE_SYSTEM_ZLIB)
|
|
|
|
target_link_libraries(fltk_png_SHARED ${FLTK_ZLIB_LIBRARIES})
|
|
|
|
else()
|
|
|
|
target_link_libraries(fltk_png_SHARED fltk_z_SHARED)
|
|
|
|
endif(OPTION_USE_SYSTEM_ZLIB)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
endif(OPTION_BUILD_SHARED_LIBS)
|
|
|
|
#######################################################################
|