mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-24 09:25:41 +01:00
38 lines
734 B
CMake
38 lines
734 B
CMake
|
|
SET( SOURCES
|
|
"src/ImageFile.cpp"
|
|
"src/ImageLoader.cpp"
|
|
)
|
|
|
|
SET( HEADERS
|
|
"config/ImageLoader.h.in"
|
|
"include/ImageFile.h"
|
|
)
|
|
|
|
FIND_PACKAGE( PNG )
|
|
IF( PNG_FOUND )
|
|
INCLUDE_DIRECTORIES( ${PNG_INCLUDE_DIR} )
|
|
|
|
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}
|
|
)
|
|
|
|
IF( PNG_FOUND )
|
|
TARGET_LINK_LIBRARIES( TexCompIO ${PNG_LIBRARY} )
|
|
TARGET_LINK_LIBRARIES( TexCompIO ${ZLIB_LIBRARY} )
|
|
ENDIF()
|