mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-24 09:25:41 +01:00
31 lines
446 B
CMake
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}
|
|
)
|