[SHELL32]
[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 shell32_main.cpp
46 shellitem.cpp
47 shelllink.cpp
48 shellole.cpp
49 shellord.cpp
50 shellpath.cpp
51 shellreg.cpp
52 folders/desktop.cpp
53 folders/fs.cpp
54 folders/mycomp.cpp
55 folders/mydocuments.cpp
56 folders/printers.cpp
57 folders/admintools.cpp
58 folders/netplaces.cpp
59 folders/fonts.cpp
60 folders/cpanel.cpp
61 folders/recyclebin.cpp
62 droptargets/CexeDropHandler.cpp
63 shlexec.cpp
64 shlfileop.cpp
65 shlfolder.cpp
66 shlfsbind.cpp
67 shlmenu.cpp
68 shlview.cpp
69 shpolicy.cpp
70 stubs.cpp
71 systray.cpp
72 defcontextmenu.cpp
73 openwithmenu.cpp
74 newmenu.cpp
75 startmenu.cpp
76 precomp.h)
77
78 add_library(shell32 SHARED
79 ${SOURCE}
80 wine/shellstring.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)