27b724e80e0dc554b5fb130b71dd4d2eaabc88cd
[reactos.git] / dll / win32 / user32 / CMakeLists.txt
1
2 set_unicode()
3
4 spec2def(user32.dll user32.spec)
5
6 add_definitions(-D_DLL -D__USE_CRTIMP)
7
8 include_directories(
9 BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine
10 ${REACTOS_SOURCE_DIR}/include/reactos/subsys
11 include)
12
13 set_rc_compiler()
14
15 list(APPEND SOURCE
16 controls/button.c
17 controls/combo.c
18 controls/edit.c
19 controls/icontitle.c
20 controls/listbox.c
21 controls/regcontrol.c
22 controls/scrollbar.c
23 controls/static.c
24 misc/dde.c
25 misc/ddeclient.c
26 misc/ddeserver.c
27 misc/desktop.c
28 misc/display.c
29 misc/dllmain.c
30 misc/exit.c
31 misc/exticon.c
32 misc/imm.c
33 misc/misc.c
34 misc/object.c
35 misc/resources.c
36 misc/rtlstr.c
37 misc/stubs.c
38 misc/timer.c
39 misc/usrapihk.c
40 misc/winhelp.c
41 misc/winsta.c
42 windows/accel.c
43 windows/caret.c
44 windows/class.c
45 windows/clipboard.c
46 windows/cursoricon.c
47 windows/dc.c
48 windows/defwnd.c
49 windows/dialog.c
50 windows/draw.c
51 windows/font.c
52 windows/hook.c
53 windows/input.c
54 windows/mdi.c
55 windows/menu.c
56 windows/messagebox.c
57 windows/message.c
58 windows/nonclient.c
59 windows/paint.c
60 windows/prop.c
61 windows/rect.c
62 windows/spy.c
63 windows/text.c
64 windows/window.c
65 windows/winpos.c
66 user32.rc
67 ${CMAKE_CURRENT_BINARY_DIR}/user32.def)
68
69 add_library(user32 SHARED
70 ${CMAKE_CURRENT_BINARY_DIR}/user32_user32.h.gch
71 ${SOURCE})
72
73 set_module_type(user32 win32dll)
74
75 target_link_libraries(user32
76 user32_wsprintf
77 wine
78 win32ksys
79 ${PSEH_LIB})
80
81 add_pch(user32 ${CMAKE_CURRENT_SOURCE_DIR}/include/user32.h ${SOURCE})
82 add_importlibs(user32 gdi32 advapi32 imm32 msvcrt kernel32 ntdll)
83 add_cab_target(user32 1)
84 add_importlib_target(user32.spec)