[SHELL32_NEW]
[reactos.git] / dll / win32 / shell32 / CMakeLists.txt
1 set_unicode()
2 set_cpp()
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6
7 add_definitions(
8 -D_SHELL32_
9 -DCOM_NO_WINDOWS_H
10 -D_WINE)
11
12 include_directories(
13 ${REACTOS_SOURCE_DIR}/include/reactos/wine
14 ${REACTOS_SOURCE_DIR}/lib/recyclebin
15 ${REACTOS_SOURCE_DIR}/lib/atl
16 ${REACTOS_SOURCE_DIR})
17
18 generate_idl_iids(shobjidl_local.idl)
19
20 spec2def(shell32.dll shell32.spec)
21
22 list(APPEND SOURCE
23 authors.cpp
24 autocomplete.cpp
25 brsfolder.cpp
26 changenotify.cpp
27 classes.cpp
28 clipboard.cpp
29 control.cpp
30 dataobject.cpp
31 dde.cpp
32 debughlp.cpp
33 desktop.cpp
34 dialogs.cpp
35 dragdrophelper.cpp
36 enumidlist.cpp
37 extracticon.cpp
38 folders.cpp
39 iconcache.cpp
40 pidl.cpp
41 shell32_main.cpp
42 shellitem.cpp
43 shelllink.cpp
44 shellole.cpp
45 shellord.cpp
46 shellpath.cpp
47 shellreg.cpp
48 shellstring.cpp
49 shfldr_desktop.cpp
50 shfldr_fs.cpp
51 shfldr_mycomp.cpp
52 shfldr_mydocuments.cpp
53 shfldr_printers.cpp
54 shfldr_admintools.cpp
55 shfldr_netplaces.cpp
56 shfldr_fonts.cpp
57 shfldr_cpanel.cpp
58 shfldr_recyclebin.cpp
59 shlexec.cpp
60 shlfileop.cpp
61 shlfolder.cpp
62 shlfsbind.cpp
63 shlmenu.cpp
64 shlview.cpp
65 shpolicy.cpp
66 shv_def_cmenu.cpp
67 startmenu.cpp
68 stubs.cpp
69 ros-systray.cpp
70 fprop.cpp
71 drive.cpp
72 she_ocmenu.cpp
73 shv_item_new.cpp
74 folder_options.cpp
75 shell32.rc
76 ${CMAKE_CURRENT_BINARY_DIR}/shobjidl_local_i.c
77 ${CMAKE_CURRENT_BINARY_DIR}/shell32_stubs.c
78 ${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
79
80 # FIXME
81 #add_pch(shell32 ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
82 #add_library(shell32 SHARED ${CMAKE_CURRENT_BINARY_DIR}/shell32_precomp.h.gch ${SOURCE})
83
84 add_library(shell32 SHARED ${SOURCE})
85
86 set_module_type(shell32 win32dll)
87
88 target_link_libraries(shell32
89 atlnew
90 wine
91 uuid
92 recyclebin)
93
94 add_importlibs(shell32
95 advapi32
96 gdi32
97 user32
98 comctl32
99 comdlg32
100 shlwapi
101 ole32
102 version
103 devmgr
104 winspool
105 winmm
106 kernel32
107 msvcrt
108 ntdll)
109
110 add_cd_file(TARGET shell32 DESTINATION reactos/system32 FOR all)
111 add_importlib_target(shell32.spec)