xref: /reactos/dll/3rdparty/libpng/CMakeLists.txt (revision 4561998a)
1
2add_definitions(
3    -DWIN32
4    -DNDEBUG
5    -D_WINDOWS
6    -DPNG_BUILD_DLL)
7
8include_directories(
9    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libpng
10    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
11
12list(APPEND SOURCE
13    png.c
14    pngerror.c
15    pngget.c
16    pngmem.c
17    pngpread.c
18    pngread.c
19    pngrio.c
20    pngrtran.c
21    pngrutil.c
22    pngset.c
23    pngtrans.c
24    pngwio.c
25    pngwrite.c
26    pngwtran.c
27    pngwutil.c
28    pngpriv.h)
29
30add_library(libpng SHARED ${SOURCE})
31set_module_type(libpng win32dll)
32target_link_libraries(libpng zlib)
33add_importlibs(libpng msvcrt kernel32 ntdll)
34add_pch(libpng pngpriv.h SOURCE)
35add_cd_file(TARGET libpng DESTINATION reactos/system32 FOR all)
36