2011-03-20 23:45:24 +01:00
|
|
|
PROJECT(libpng C)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}"
|
|
|
|
${OPENJPEG_SOURCE_DIR}/thirdparty/include
|
|
|
|
)
|
|
|
|
|
|
|
|
FILE(GLOB SRCS *.c)
|
|
|
|
FILE(GLOB HDRS *.h)
|
2012-08-30 19:20:03 +02:00
|
|
|
SET(EXT_HDRS
|
2011-03-20 23:45:24 +01:00
|
|
|
${OPENJPEG_SOURCE_DIR}/thirdparty/include/zlib.h
|
|
|
|
${OPENJPEG_SOURCE_DIR}/thirdparty/include/zconf.h
|
|
|
|
)
|
|
|
|
#
|
|
|
|
SET(LIBTARGET "png")
|
|
|
|
#
|
|
|
|
ADD_LIBRARY(${LIBTARGET} STATIC ${SRCS} ${HDRS} ${EXT_HDRS})
|
|
|
|
#
|
|
|
|
IF(MSVC)
|
|
|
|
SET_TARGET_PROPERTIES(${LIBTARGET} PROPERTIES PREFIX "lib")
|
|
|
|
ENDIF(MSVC)
|
|
|
|
#
|
|
|
|
TARGET_LINK_LIBRARIES(${LIBTARGET} ${Z_LIBNAME} ${M_LIBRARY})
|
|
|
|
#
|
|
|
|
SET_TARGET_PROPERTIES(${LIBTARGET}
|
2012-08-30 19:20:03 +02:00
|
|
|
PROPERTIES
|
2011-03-20 23:45:24 +01:00
|
|
|
OUTPUT_NAME "${LIBTARGET}"
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/thirdparty/lib)
|
|
|
|
#
|