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