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