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