mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-26 04:07:58 +00:00
30 lines
446 B
CMake
30 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}
|
|
)
|