ca005c4067
More CMake updates (STR #499) The Watcom C++ compiler needed a small change (STR #567) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
29 lines
669 B
CMake
29 lines
669 B
CMake
PROJECT(FLTKPNG)
|
|
INCLUDE_REGULAR_EXPRESSION("^png.*$")
|
|
|
|
INCLUDE_DIRECTORIES(${FLTKZLIB_SOURCE_DIR})
|
|
|
|
IF(ZLIB_INCLUDE_DIR)
|
|
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
|
|
ENDIF(ZLIB_INCLUDE_DIR)
|
|
|
|
INCLUDE_DIRECTORIES(${FLTKPNG_SOURCE_DIR})
|
|
INCLUDE_DIRECTORIES(${FLTKPNG_BINARY_DIR})
|
|
|
|
# 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
|
|
)
|
|
|
|
ADD_LIBRARY(fltk_png ${PNG_SRCS})
|
|
|
|
IF(UNIX)
|
|
TARGET_LINK_LIBRARIES(fltk_png ${FLTK_ZLIB_LIBRARIES} -lm)
|
|
ELSE(UNIX)
|
|
TARGET_LINK_LIBRARIES(fltk_png ${FLTK_ZLIB_LIBRARIES})
|
|
ENDIF(UNIX)
|
|
|