[CMAKE/DLLS]
[reactos.git] / reactos / 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 spec2def(shell32.dll shell32.spec)
16
17 list(APPEND SOURCE
18 authors.c
19 autocomplete.c
20 brsfolder.c
21 changenotify.c
22 classes.c
23 clipboard.c
24 control.c
25 dataobject.c
26 dde.c
27 debughlp.c
28 desktop.c
29 dialogs.c
30 dragdrophelper.c
31 enumidlist.c
32 extracticon.c
33 folders.c
34 iconcache.c
35 pidl.c
36 regsvr.c
37 shell32_main.c
38 shellitem.c
39 shelllink.c
40 shellole.c
41 shellord.c
42 shellpath.c
43 shellreg.c
44 shellstring.c
45 shfldr_desktop.c
46 shfldr_fs.c
47 shfldr_mycomp.c
48 shfldr_mydocuments.c
49 shfldr_printers.c
50 shfldr_admintools.c
51 shfldr_netplaces.c
52 shfldr_fonts.c
53 shfldr_cpanel.c
54 shfldr_recyclebin.c
55 shlexec.c
56 shlfileop.c
57 shlfolder.c
58 shlfsbind.c
59 shlmenu.c
60 shlview.c
61 shpolicy.c
62 shv_def_cmenu.c
63 startmenu.c
64 stubs.c
65 ros-systray.c
66 fprop.c
67 drive.c
68 she_ocmenu.c
69 shv_item_new.c
70 folder_options.c
71 shell32.rc
72 ${CMAKE_CURRENT_BINARY_DIR}/shell32_stubs.c
73 ${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
74
75 add_library(shell32 SHARED ${SOURCE})
76 set_module_type(shell32 win32dll)
77 target_link_libraries(shell32 wine uuid recyclebin)
78 add_delay_importlibs(shell32 ole32 version)
79
80 add_importlibs(shell32
81 advapi32
82 gdi32
83 user32
84 comctl32
85 comdlg32
86 shlwapi
87 devmgr
88 winspool
89 winmm
90 msvcrt
91 kernel32
92 ntdll)
93
94 add_pch(shell32 precomp.h)
95 add_cd_file(TARGET shell32 DESTINATION reactos/system32 FOR all)
96 add_importlib_target(shell32.spec)