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} )
|
|
|
|
TARGET_LINK_LIBRARIES( ${PNG_LIBRARY} )
|
|
|
|
|
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-08-27 01:51:49 +02:00
|
|
|
|
2012-08-27 01:05:18 +02:00
|
|
|
ADD_LIBRARY(TexCompIO
|
|
|
|
${SOURCES}
|
|
|
|
${HEADERS}
|
|
|
|
)
|