mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 13:33:42 +00:00
35 lines
708 B
CMake
35 lines
708 B
CMake
|
|
add_definitions(
|
|
-DWIN32
|
|
-DNDEBUG
|
|
-D_WINDOWS
|
|
-DPNG_BUILD_DLL)
|
|
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libpng
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
|
|
|
list(APPEND SOURCE
|
|
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
|
|
pngpriv.h)
|
|
|
|
add_library(libpng SHARED ${SOURCE})
|
|
set_module_type(libpng win32dll)
|
|
target_link_libraries(libpng zlib)
|
|
add_importlibs(libpng msvcrt kernel32 ntdll)
|
|
add_pch(libpng pngpriv.h SOURCE)
|
|
add_cd_file(TARGET libpng DESTINATION reactos/system32 FOR all)
|