[CMAKE]
[reactos.git] / dll / win32 / gdiplus / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 add_definitions(-D_DLL -D__USE_CRTIMP)
4 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
5
6 spec2def(gdiplus.dll gdiplus.spec)
7
8 add_library(gdiplus SHARED
9 brush.c
10 customlinecap.c
11 font.c
12 gdiplus.c
13 graphics.c
14 graphicspath.c
15 image.c
16 imageattributes.c
17 matrix.c
18 pathiterator.c
19 pen.c
20 region.c
21 stringformat.c
22 ${CMAKE_CURRENT_BINARY_DIR}/gdiplus.def)
23
24 set_module_type(gdiplus win32dll)
25
26 target_link_libraries(gdiplus
27 uuid
28 wine)
29
30 add_importlibs(gdiplus
31 msvcrt
32 shlwapi
33 oleaut32
34 ole32
35 user32
36 gdi32
37 windowscodecs
38 kernel32
39 ntdll)
40
41 if(ARCH MATCHES amd64)
42 target_link_libraries(gdiplus crt)
43 endif(ARCH MATCHES amd64)
44
45
46 add_cab_target(gdiplus 1)