[NTOSKRNL]
[reactos.git] / reactos / dll / win32 / shell32 / CMakeLists.txt
1 PROJECT(SHELL)
2
3 add_subdirectory(shelldesktop)
4 add_subdirectory(shellmenu)
5
6 set_cpp(WITH_RUNTIME)
7 spec2def(shell32.dll shell32.spec ADD_IMPORTLIB)
8
9 remove_definitions(-D_WIN32_WINNT=0x502)
10 add_definitions(-D_WIN32_WINNT=0x600)
11
12 add_definitions(
13 -D_SHELL32_
14 -D_WINE)
15
16 include_directories(
17 ${REACTOS_SOURCE_DIR}/lib/recyclebin
18 ${REACTOS_SOURCE_DIR}/lib/atl
19 ${REACTOS_SOURCE_DIR})
20
21 list(APPEND SOURCE
22 CIDLDataObj.cpp
23 CQueryAssociations.cpp
24 debughlp.cpp
25 dialogs/dialogs.cpp
26 dialogs/drive.cpp
27 dialogs/drvdefext.cpp
28 dialogs/folder_options.cpp
29 dialogs/filedefext.cpp
30 dialogs/fprop.cpp
31 dialogs/recycler_prop.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 CShell.cpp
62 CFolder.cpp
63 CFolderItems.cpp
64 CFolderItemVerbs.cpp
65 precomp.h)
66
67 add_library(shell32 SHARED
68 ${SOURCE}
69 wine/brsfolder.c
70 wine/changenotify.c
71 wine/classes.c
72 wine/clipboard.c
73 wine/control.c
74 wine/pidl.c
75 wine/shell32_main.c
76 wine/shellole.c
77 wine/shellord.c
78 wine/shellpath.c
79 wine/shellreg.c
80 wine/shellstring.c
81 wine/shlmenu.c
82 wine/shpolicy.c
83 vista.c
84 shell32.rc
85 ${CMAKE_CURRENT_BINARY_DIR}/shell32_stubs.c
86 ${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
87
88 set_module_type(shell32 win32dll UNICODE)
89 target_link_libraries(shell32 shellmenu shelldesktop atlnew wine uuid recyclebin)
90 add_delay_importlibs(shell32 uxtheme ole32 oleaut32 userenv version fmifs)
91 add_importlibs(shell32 advapi32 browseui gdi32 user32 powrprof comctl32 comdlg32 shdocvw shlwapi devmgr winspool winmm mpr msvcrt kernel32 ntdll)
92 add_pch(shell32 precomp.h SOURCE)
93 add_cd_file(TARGET shell32 DESTINATION reactos/system32 FOR all)