[CMAKE]
[reactos.git] / dll / 3rdparty / libpng / CMakeLists.txt
1
2 add_definitions(-DWIN32 -DNDEBUG -D_WINDOWS -DPNG_BUILD_DLL)
3 add_definitions(-D_DLL -D__USE_CRTIMP)
4
5 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng)
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
7
8 add_library(libpng SHARED
9 png.c
10 pngerror.c
11 pngget.c
12 pngmem.c
13 pngpread.c
14 pngread.c
15 pngrio.c
16 pngrtran.c
17 pngrutil.c
18 pngset.c
19 pngtest.c
20 pngtrans.c
21 pngwio.c
22 pngwrite.c
23 pngwtran.c
24 pngwutil.c)
25
26 set_entrypoint(libpng 0)
27
28 target_link_libraries(libpng mingw_common zlib)
29
30 add_importlibs(libpng msvcrt kernel32)
31
32 add_dependencies(libpng psdk buildno_header)
33
34 add_cab_target(libpng 1)