FasTC/IO/CMakeLists.txt

40 lines
780 B
CMake
Raw Normal View History

SET( SOURCES
"src/ImageFile.cpp"
"src/ImageLoader.cpp"
"src/FileStream.cpp"
)
SET( HEADERS
"config/ImageLoader.h.in"
"include/ImageFile.h"
"include/FileStream.h"
)
FIND_PACKAGE( PNG )
IF( PNG_FOUND )
INCLUDE_DIRECTORIES( ${PNG_INCLUDE_DIR} )
2012-08-27 16:58:44 +00:00
SET( SOURCES ${SOURCES} "src/ImageLoaderPNG.cpp" )
SET( HEADERS ${HEADERS} "src/ImageLoaderPNG.h" )
ENDIF()
CONFIGURE_FILE(
"config/ImageLoader.h.in"
"include/ImageLoader.h"
)
INCLUDE_DIRECTORIES( ${TexC_BINARY_DIR}/IO/include )
INCLUDE_DIRECTORIES( ${TexC_SOURCE_DIR}/IO/include )
INCLUDE_DIRECTORIES( ${TexC_SOURCE_DIR}/Core/include )
ADD_LIBRARY(TexCompIO
${SOURCES}
${HEADERS}
)
2012-08-27 16:58:44 +00:00
IF( PNG_FOUND )
TARGET_LINK_LIBRARIES( TexCompIO ${PNG_LIBRARY} )
2012-08-28 20:45:37 +00:00
TARGET_LINK_LIBRARIES( TexCompIO ${ZLIB_LIBRARY} )
2012-08-27 16:58:44 +00:00
ENDIF()