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