2018-04-11 21:30:15 +00:00
|
|
|
add_library(png STATIC
|
2013-04-19 03:11:07 +00:00
|
|
|
png.h
|
|
|
|
pngconf.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
|
|
|
|
pngwutil.c
|
|
|
|
)
|
2018-04-11 21:30:15 +00:00
|
|
|
|
|
|
|
target_include_directories(png
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2019-05-08 18:57:34 +00:00
|
|
|
target_link_libraries(png PUBLIC z)
|
|
|
|
|
2017-01-21 01:36:41 +00:00
|
|
|
if(NOT MSVC)
|
2018-04-11 21:30:15 +00:00
|
|
|
target_compile_options(png
|
|
|
|
PRIVATE
|
|
|
|
-Wno-self-assign
|
|
|
|
)
|
2017-01-21 01:36:41 +00:00
|
|
|
endif()
|