2022-10-24 00:45:46 +00:00
|
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
2021-09-06 21:05:51 +00:00
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
|
set(CMAKE_C_STANDARD 99)
|
|
|
|
|
|
|
|
|
|
project("png")
|
|
|
|
|
|
|
|
|
|
add_library(png STATIC
|
|
|
|
|
png.c
|
|
|
|
|
pngerror.c
|
|
|
|
|
pngget.c
|
|
|
|
|
pngmem.c
|
|
|
|
|
pngpread.c
|
|
|
|
|
pngread.c
|
|
|
|
|
pngrio.c
|
|
|
|
|
pngrtran.c
|
|
|
|
|
pngrutil.c
|
|
|
|
|
pngset.c
|
|
|
|
|
pngtest.c
|
|
|
|
|
pngtrans.c
|
|
|
|
|
pngwio.c
|
|
|
|
|
pngwrite.c
|
|
|
|
|
pngwtran.c
|
|
|
|
|
pngwutil.c)
|
|
|
|
|
|
|
|
|
|
add_definitions(-DANDROID)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(png)
|