2004-10-19 00:29:58 +04:00
|
|
|
PROJECT(FLTKPNG)
|
|
|
|
INCLUDE_REGULAR_EXPRESSION("^png.*$")
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${FLTKZLIB_SOURCE_DIR})
|
|
|
|
|
|
|
|
IF(ZLIB_INCLUDE_DIR)
|
2005-02-24 23:26:22 +03:00
|
|
|
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
|
2004-10-19 00:29:58 +04:00
|
|
|
ENDIF(ZLIB_INCLUDE_DIR)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${FLTKPNG_SOURCE_DIR})
|
|
|
|
INCLUDE_DIRECTORIES(${FLTKPNG_BINARY_DIR})
|
|
|
|
|
|
|
|
# source files for png
|
|
|
|
SET(PNG_SRCS
|
2005-02-24 23:26:22 +03: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
|
|
|
|
)
|
2004-10-19 00:29:58 +04:00
|
|
|
|
|
|
|
ADD_LIBRARY(fltk_png ${PNG_SRCS})
|
2005-08-06 09:02:56 +04:00
|
|
|
INSTALL_TARGETS(/lib fltk_png)
|
|
|
|
|
2004-10-19 00:29:58 +04:00
|
|
|
|
|
|
|
IF(UNIX)
|
2005-02-24 23:26:22 +03:00
|
|
|
TARGET_LINK_LIBRARIES(fltk_png ${FLTK_ZLIB_LIBRARIES} -lm)
|
2004-10-19 00:29:58 +04:00
|
|
|
ELSE(UNIX)
|
2005-02-24 23:26:22 +03:00
|
|
|
TARGET_LINK_LIBRARIES(fltk_png ${FLTK_ZLIB_LIBRARIES})
|
2004-10-19 00:29:58 +04:00
|
|
|
ENDIF(UNIX)
|
|
|
|
|