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