e596388f47f4e3ecbe474483c515f8a7a5f675f3
[reactos.git] / dll / win32 / user32 / CMakeLists.txt
1
2
3
4 add_definitions(-DUNICODE -D_UNICODE)
5 add_definitions(-D_DLL -D__USE_CRTIMP)
6
7 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
8 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
9 include_directories(include)
10
11 set_rc_compiler()
12
13 list(APPEND SOURCE
14 user32_stubs.c
15 controls/button.c
16 controls/combo.c
17 controls/edit.c
18 controls/icontitle.c
19 controls/listbox.c
20 controls/regcontrol.c
21 controls/scrollbar.c
22 controls/static.c
23 misc/dde.c
24 misc/ddeclient.c
25 misc/ddeserver.c
26 misc/desktop.c
27 misc/display.c
28 misc/dllmain.c
29 misc/exit.c
30 misc/exticon.c
31 misc/imm.c
32 misc/misc.c
33 misc/object.c
34 misc/resources.c
35 misc/rtlstr.c
36 misc/stubs.c
37 misc/timer.c
38 misc/usrapihk.c
39 misc/winhelp.c
40 misc/winsta.c
41 misc/wsprintf.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
67 add_library(user32 SHARED
68 ${SOURCE}
69 ${CMAKE_CURRENT_SOURCE_DIR}/user32.rc
70 ${CMAKE_CURRENT_BINARY_DIR}/user32_user32.h.gch)
71
72 set_target_properties(user32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
73
74 target_link_libraries(user32
75 ${CMAKE_CURRENT_SOURCE_DIR}/user32.def
76 wine
77 -lgdi32
78 -ladvapi32
79 -limm32
80 win32ksys
81 pseh
82 -lkernel32
83 -lntdll)
84
85 add_pch(user32 ${CMAKE_CURRENT_SOURCE_DIR}/include/user32.h ${SOURCE})
86 add_dependencies(user32 psdk)