FasTC/IO/CMakeLists.txt

31 lines
446 B
CMake

SET( SOURCES
ImageFile.cpp
)
SET( HEADERS
ImageLoader.h
ImageFile.h
)
FIND_PACKAGE( PNG )
IF( PNG_FOUND )
INCLUDE_DIRECTORIES( ${PNG_INCLUDE_DIR} )
TARGET_LINK_LIBRARIES( ${PNG_LIBRARY} )
SET( SOURCES ${SOURCES} ImageLoaderPNG.cpp )
SET( HEADERS ${HEADERS} ImageLoaderPNG.h )
ENDIF()
CONFIGURE_FILE(
"ImageLoader.h.in"
"ImageLoader.h"
)
INCLUDE_DIRECTORIES( ${TexC_BINARY_DIR}/IO )
ADD_LIBRARY(TexCompIO
${SOURCES}
${HEADERS}
)