* Sync up to trunk head (r65426).
[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 CAutoComplete.cpp
20 CMenuBand.cpp
21 CMenuDeskBar.cpp
22 CIDLDataObj.cpp
23 dde.cpp
24 debughlp.cpp
25 CDesktopBrowser.cpp
26 dialogs/dialogs.cpp
27 dialogs/drive.cpp
28 dialogs/drvdefext.cpp
29 dialogs/folder_options.cpp
30 dialogs/filedefext.cpp
31 dialogs/fprop.cpp
32 CDropTargetHelper.cpp
33 CEnumIDListBase.cpp
34 CExtractIcon.cpp
35 folders.cpp
36 iconcache.cpp
37 shell32.cpp
38 CShellItem.cpp
39 CShellLink.cpp
40 folders/CDesktopFolder.cpp
41 folders/CFSFolder.cpp
42 folders/CDrivesFolder.cpp
43 folders/CMyDocsFolder.cpp
44 folders/CPrinterFolder.cpp
45 folders/CAdminToolsFolder.cpp
46 folders/CNetFolder.cpp
47 folders/CFontsFolder.cpp
48 folders/CControlPanelFolder.cpp
49 folders/CRecycleBin.cpp
50 droptargets/CexeDropHandler.cpp
51 shlexec.cpp
52 shlfileop.cpp
53 shlfolder.cpp
54 CFileSysBindData.cpp
55 CDefView.cpp
56 stubs.cpp
57 systray.cpp
58 CDefaultContextMenu.cpp
59 COpenWithMenu.cpp
60 CNewMenu.cpp
61 CStartMenu.cpp
62 precomp.h)
63
64 add_library(shell32 SHARED
65 ${SOURCE}
66 wine/brsfolder.c
67 wine/changenotify.c
68 wine/classes.c
69 wine/clipboard.c
70 wine/control.c
71 wine/pidl.c
72 wine/shell32_main.c
73 wine/shellole.c
74 wine/shellord.c
75 wine/shellpath.c
76 wine/shellreg.c
77 wine/shellstring.c
78 wine/shlmenu.c
79 wine/shpolicy.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 userenv 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)