2021-08-04 05:43:25 +00:00
|
|
|
add_library(png
|
|
|
|
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
|
2023-10-02 05:20:20 +00:00
|
|
|
intel/filter_sse2_intrinsics.c
|
|
|
|
intel/intel_init.c
|
2021-08-04 05:43:25 +00:00
|
|
|
)
|
|
|
|
|
2023-10-02 05:20:20 +00:00
|
|
|
target_compile_definitions(png PRIVATE "PNG_INTEL_SSE")
|
2021-08-04 05:43:25 +00:00
|
|
|
target_link_libraries(png PRIVATE ZLIB::ZLIB)
|
|
|
|
target_include_directories(png PUBLIC .)
|
|
|
|
add_library(PNG::PNG ALIAS png)
|
2023-08-26 03:25:24 +00:00
|
|
|
disable_compiler_warnings_for_target(png)
|