[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.def)
76
77 add_pch(shell32 ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
78
79 add_library(shell32 SHARED ${CMAKE_CURRENT_BINARY_DIR}/shell32_precomp.h.gch ${SOURCE})
80
81 set_module_type(shell32 win32dll)
82
83 target_link_libraries(shell32
84 wine
85 uuid
86 recyclebin)
87
88 add_importlibs(shell32
89 advapi32
90 gdi32
91 user32
92 comctl32
93 comdlg32
94 shlwapi
95 ole32
96 version
97 devmgr
98 winspool
99 winmm
100 kernel32
101 msvcrt
102 ntdll)
103
104 add_cab_target(shell32 1)
105 add_importlib_target(shell32.spec)