e511ff69305b462bd8209e8c879e5ded44cca667
[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_main.cpp
45 shellitem.cpp
46 shelllink.cpp
47 shellole.cpp
48 shellord.cpp
49 shellpath.cpp
50 shellreg.cpp
51 folders/desktop.cpp
52 folders/fs.cpp
53 folders/mycomp.cpp
54 folders/mydocuments.cpp
55 folders/printers.cpp
56 folders/admintools.cpp
57 folders/netplaces.cpp
58 folders/fonts.cpp
59 folders/cpanel.cpp
60 folders/recyclebin.cpp
61 droptargets/CexeDropHandler.cpp
62 shlexec.cpp
63 shlfileop.cpp
64 shlfolder.cpp
65 shlfsbind.cpp
66 shlmenu.cpp
67 shlview.cpp
68 shpolicy.cpp
69 stubs.cpp
70 systray.cpp
71 defcontextmenu.cpp
72 openwithmenu.cpp
73 newmenu.cpp
74 startmenu.cpp
75 precomp.h)
76
77 add_library(shell32 SHARED
78 ${SOURCE}
79 wine/shellstring.c
80 vista.c
81 shell32.rc
82 ${CMAKE_CURRENT_BINARY_DIR}/shell32_stubs.c
83 ${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
84
85 set_module_type(shell32 win32dll UNICODE HOTPATCHABLE)
86 target_link_libraries(shell32 atlnew wine uuid recyclebin)
87 add_delay_importlibs(shell32 ole32 version fmifs)
88 add_importlibs(shell32 advapi32 browseui gdi32 user32 powrprof comctl32 comdlg32 shdocvw shlwapi devmgr winspool winmm msvcrt kernel32 ntdll)
89 add_pch(shell32 precomp.h SOURCE)
90 add_cd_file(TARGET shell32 DESTINATION reactos/system32 FOR all)