[CMAKE]
[reactos.git] / dll / win32 / shell32 / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 add_definitions(
6 -D_SHELL32_
7 -DCOM_NO_WINDOWS_H
8 -D_WINE)
9
10 include_directories(
11 ${REACTOS_SOURCE_DIR}/include/reactos/wine
12 ${REACTOS_SOURCE_DIR}/lib/recyclebin
13 ${REACTOS_SOURCE_DIR})
14
15 generate_idl_iids(shobjidl_local.idl)
16
17 spec2def(shell32.dll shell32.spec)
18
19 list(APPEND SOURCE
20 authors.c
21 autocomplete.c
22 brsfolder.c
23 changenotify.c
24 classes.c
25 clipboard.c
26 control.c
27 dataobject.c
28 dde.c
29 debughlp.c
30 desktop.c
31 dialogs.c
32 dragdrophelper.c
33 enumidlist.c
34 extracticon.c
35 folders.c
36 iconcache.c
37 pidl.c
38 regsvr.c
39 shell32_main.c
40 shellitem.c
41 shelllink.c
42 shellole.c
43 shellord.c
44 shellpath.c
45 shellreg.c
46 shellstring.c
47 shfldr_desktop.c
48 shfldr_fs.c
49 shfldr_mycomp.c
50 shfldr_mydocuments.c
51 shfldr_printers.c
52 shfldr_admintools.c
53 shfldr_netplaces.c
54 shfldr_fonts.c
55 shfldr_cpanel.c
56 shfldr_recyclebin.c
57 shlexec.c
58 shlfileop.c
59 shlfolder.c
60 shlfsbind.c
61 shlmenu.c
62 shlview.c
63 shpolicy.c
64 shv_def_cmenu.c
65 startmenu.c
66 stubs.c
67 ros-systray.c
68 fprop.c
69 drive.c
70 she_ocmenu.c
71 shv_item_new.c
72 folder_options.c
73 shell32.rc
74 ${CMAKE_CURRENT_BINARY_DIR}/shobjidl_local_i.c
75 ${CMAKE_CURRENT_BINARY_DIR}/shell32_stubs.c
76 ${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
77
78 add_pch(shell32 ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
79
80 add_library(shell32 SHARED ${CMAKE_CURRENT_BINARY_DIR}/shell32_precomp.h.gch ${SOURCE})
81
82 set_module_type(shell32 win32dll)
83
84 target_link_libraries(shell32
85 wine
86 uuid
87 recyclebin)
88
89 add_importlibs(shell32
90 advapi32
91 gdi32
92 user32
93 comctl32
94 comdlg32
95 shlwapi
96 ole32
97 version
98 devmgr
99 winspool
100 winmm
101 kernel32
102 msvcrt
103 ntdll)
104
105 add_cab_target(shell32 1)
106 add_importlib_target(shell32.spec)