metaforce/hecl/extern/libpng/CMakeLists.txt

35 lines
608 B
CMake
Raw Normal View History

2015-07-28 02:25:33 +00:00
if(NOT WIN32)
find_library(PNG_LIB png)
endif()
if(WIN32 OR PNG_LIB STREQUAL PNG_LIB-NOTFOUND)
message("-- Using HECL's built-in libpng")
2015-07-22 19:14:50 +00:00
include_directories(${ZLIB_INCLUDE_DIR})
2015-07-07 03:24:09 +00:00
add_library(png
png.h
pngconf.h
pngdebug.h
pnginfo.h
pngpriv.h
pngstruct.h
pnglibconf.h
png.c
pngerror.c
pngget.c
pngmem.c
pngpread.c
pngread.c
pngrio.c
pngrtran.c
pngrutil.c
pngset.c
pngtrans.c
pngwio.c
pngwrite.c
pngwtran.c
2015-07-28 02:25:33 +00:00
pngwutil.c)
set(LIBPNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "PNG include path" FORCE)
endif()