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