2012-08-27 01:05:18 +02:00
|
|
|
|
|
|
|
SET( SOURCES
|
2012-08-27 18:19:27 +02:00
|
|
|
"src/ImageFile.cpp"
|
2012-08-27 01:05:18 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
SET( HEADERS
|
2012-08-27 18:19:27 +02:00
|
|
|
"config/ImageLoader.h.in"
|
|
|
|
"include/ImageFile.h"
|
2012-08-27 01:05:18 +02:00
|
|
|
)
|
|
|
|
|
2012-08-27 02:31:41 +02:00
|
|
|
FIND_PACKAGE( PNG )
|
|
|
|
IF( PNG_FOUND )
|
|
|
|
INCLUDE_DIRECTORIES( ${PNG_INCLUDE_DIR} )
|
2012-08-27 18:58:44 +02:00
|
|
|
|
2012-08-27 18:19:27 +02:00
|
|
|
SET( SOURCES ${SOURCES} "src/ImageLoaderPNG.cpp" )
|
|
|
|
SET( HEADERS ${HEADERS} "src/ImageLoaderPNG.h" )
|
2012-08-27 02:31:41 +02:00
|
|
|
ENDIF()
|
|
|
|
|
2012-08-27 01:51:49 +02:00
|
|
|
CONFIGURE_FILE(
|
2012-08-27 18:19:27 +02:00
|
|
|
"config/ImageLoader.h.in"
|
|
|
|
"include/ImageLoader.h"
|
2012-08-27 01:51:49 +02:00
|
|
|
)
|
|
|
|
|
2012-08-27 18:19:27 +02:00
|
|
|
INCLUDE_DIRECTORIES( ${TexC_BINARY_DIR}/IO/include )
|
|
|
|
INCLUDE_DIRECTORIES( ${TexC_SOURCE_DIR}/IO/include )
|
2012-09-20 00:10:45 +02:00
|
|
|
INCLUDE_DIRECTORIES( ${TexC_SOURCE_DIR}/Core/include )
|
2012-08-27 01:51:49 +02:00
|
|
|
|
2012-08-27 01:05:18 +02:00
|
|
|
ADD_LIBRARY(TexCompIO
|
|
|
|
${SOURCES}
|
|
|
|
${HEADERS}
|
|
|
|
)
|
2012-08-27 18:58:44 +02:00
|
|
|
|
|
|
|
IF( PNG_FOUND )
|
|
|
|
TARGET_LINK_LIBRARIES( TexCompIO ${PNG_LIBRARY} )
|
2012-08-28 22:45:37 +02:00
|
|
|
TARGET_LINK_LIBRARIES( TexCompIO ${ZLIB_LIBRARY} )
|
2012-08-27 18:58:44 +02:00
|
|
|
ENDIF()
|