[CMAKE]
[reactos.git] / dll / win32 / gdi32 / CMakeLists.txt
1
2 set_unicode()
3
4 add_definitions(
5 -D_DLL -D__USE_CRTIMP
6 -DLANGPACK)
7
8 include_directories(include)
9
10 spec2def(gdi32.dll gdi32.spec)
11
12 if(ARCH MATCHES i386)
13 list(APPEND SOURCE
14 objects/efloat.c)
15 endif()
16
17 list(APPEND SOURCE
18 main/dllmain.c
19 misc/heap.c
20 misc/gdientry.c
21 misc/hacks.c
22 misc/historic.c
23 misc/misc.c
24 misc/stubs.c
25 misc/stubsa.c
26 misc/stubsw.c
27 misc/wingl.c
28 objects/arc.c
29 objects/bitmap.c
30 objects/brush.c
31 objects/coord.c
32 objects/dc.c
33 objects/eng.c
34 objects/enhmfile.c
35 objects/font.c
36 objects/icm.c
37 objects/linedda.c
38 objects/metafile.c
39 objects/painting.c
40 objects/printdrv.c
41 objects/palette.c
42 objects/pen.c
43 objects/region.c
44 objects/text.c
45 objects/utils.c
46 objects/path.c
47 gdi32.rc
48 ${CMAKE_CURRENT_BINARY_DIR}/gdi32.def)
49
50 add_library(gdi32 SHARED
51 ${CMAKE_CURRENT_BINARY_DIR}/gdi32_precomp.h.gch
52 ${SOURCE})
53
54 set_module_type(gdi32 win32dll)
55
56 target_link_libraries(gdi32
57 win32ksys
58 dxguid
59 ${PSEH_LIB})
60
61 add_importlibs(gdi32 user32 advapi32 msvcrt kernel32 ntdll)
62 add_pch(gdi32 ${CMAKE_CURRENT_SOURCE_DIR}/include/precomp.h ${SOURCE})
63 add_cd_file(TARGET gdi32 DESTINATION reactos/system32 FOR all)
64 add_importlib_target(gdi32.spec)