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