2018-04-12 00:30:15 +03:00
|
|
|
add_library(png STATIC
|
2013-04-19 06:11:07 +03: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-12 00:30:15 +03:00
|
|
|
|
|
|
|
target_include_directories(png
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2020-06-06 00:01:16 +03:00
|
|
|
target_link_libraries(png PUBLIC ZLIB::ZLIB)
|
2019-05-08 21:57:34 +03:00
|
|
|
|
2017-01-21 03:36:41 +02:00
|
|
|
if(NOT MSVC)
|
2018-04-12 00:30:15 +03:00
|
|
|
target_compile_options(png
|
|
|
|
PRIVATE
|
|
|
|
-Wno-self-assign
|
|
|
|
)
|
2017-01-21 03:36:41 +02:00
|
|
|
endif()
|