Sync with trunk r62529.
[reactos.git] / dll / win32 / gdiplus / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_USE_MATH_DEFINES)
5
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7
8 spec2def(gdiplus.dll gdiplus.spec ADD_IMPORTLIB)
9
10 list(APPEND SOURCE
11 brush.c
12 customlinecap.c
13 font.c
14 gdiplus.c
15 graphics.c
16 graphicspath.c
17 image.c
18 imageattributes.c
19 matrix.c
20 metafile.c
21 pathiterator.c
22 pen.c
23 region.c
24 stringformat.c
25 gdiplus_private.h)
26
27 add_library(gdiplus SHARED
28 ${SOURCE}
29 guid.c
30 gdiplus.rc
31 ${CMAKE_CURRENT_BINARY_DIR}/gdiplus_stubs.c
32 ${CMAKE_CURRENT_BINARY_DIR}/gdiplus.def)
33
34 set_module_type(gdiplus win32dll)
35 target_link_libraries(gdiplus wine)
36 add_delay_importlibs(gdiplus windowscodecs)
37 add_importlibs(gdiplus msvcrt shlwapi oleaut32 ole32 user32 gdi32 kernel32 ntdll)
38 add_pch(gdiplus gdiplus_private.h SOURCE)
39 add_cd_file(TARGET gdiplus DESTINATION reactos/system32 FOR all)