* Sync up to trunk r55544.
[reactos.git] / dll / win32 / shell32 / CMakeLists.txt
1 set_cpp()
2
3 remove_definitions(-D_WIN32_WINNT=0x502)
4 add_definitions(-D_WIN32_WINNT=0x600)
5
6 add_definitions(
7 -D_SHELL32_
8 -DCOM_NO_WINDOWS_H
9 -D_WINE)
10
11 include_directories(
12 ${REACTOS_SOURCE_DIR}/include/reactos/wine
13 ${REACTOS_SOURCE_DIR}/lib/recyclebin
14 ${REACTOS_SOURCE_DIR}/lib/atl
15 ${REACTOS_SOURCE_DIR})
16
17 spec2def(shell32.dll shell32.spec)
18
19 list(APPEND SOURCE
20 authors.cpp
21 autocomplete.cpp
22 brsfolder.cpp
23 changenotify.cpp
24 classes.cpp
25 clipboard.cpp
26 control.cpp
27 dataobject.cpp
28 dde.cpp
29 debughlp.cpp
30 desktop.cpp
31 dialogs.cpp
32 dragdrophelper.cpp
33 enumidlist.cpp
34 extracticon.cpp
35 folders.cpp
36 iconcache.cpp
37 pidl.cpp
38 shell32_main.cpp
39 shellitem.cpp
40 shelllink.cpp
41 shellole.cpp
42 shellord.cpp
43 shellpath.cpp
44 shellreg.cpp
45 shellstring.cpp
46 folders/desktop.cpp
47 folders/fs.cpp
48 folders/mycomp.cpp
49 folders/mydocuments.cpp
50 folders/printers.cpp
51 folders/admintools.cpp
52 folders/netplaces.cpp
53 folders/fonts.cpp
54 folders/cpanel.cpp
55 folders/recyclebin.cpp
56 shlexec.cpp
57 shlfileop.cpp
58 shlfolder.cpp
59 shlfsbind.cpp
60 shlmenu.cpp
61 shlview.cpp
62 shpolicy.cpp
63 stubs.cpp
64 systray.cpp
65 fprop.cpp
66 drive.cpp
67 defcontextmenu.cpp
68 openwithmenu.cpp
69 newmenu.cpp
70 startmenu.cpp
71 folder_options.cpp
72 filedefext.cpp
73 drvdefext.cpp
74 shell32.rc
75 ${CMAKE_CURRENT_BINARY_DIR}/shell32_stubs.c
76 ${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
77
78 add_library(shell32 SHARED ${SOURCE})
79 allow_warnings(shell32)
80 set_module_type(shell32 win32dll UNICODE)
81
82 target_link_libraries(shell32
83 atlnew
84 wine
85 uuid
86 recyclebin)
87
88 add_delay_importlibs(shell32 ole32 version fmifs)
89
90 add_importlibs(shell32
91 advapi32
92 gdi32
93 user32
94 comctl32
95 comdlg32
96 shdocvw
97 shlwapi
98 devmgr
99 winspool
100 winmm
101 msvcrt
102 kernel32
103 ntdll)
104
105 add_dependencies(shdocvw shdocvw_v1)
106
107 add_pch(shell32 precomp.h)
108
109 add_cd_file(TARGET shell32 DESTINATION reactos/system32 FOR all)
110 add_importlib_target(shell32.spec)