* Sync with recent trunk (r52637).
[reactos.git] / base / shell / explorer / CMakeLists.txt
1
2 add_subdirectory(notifyhook)
3
4 set_unicode()
5
6 #NOTE : explorer doesn't follow standard c++, and so doesn't compile with stlport headers
7 #I'm not willing to do it if explorer_new is hanging around.
8 #jgardou
9 #set_cpp()
10
11 add_definitions(
12 -DWIN32
13 -D__WINDRES__)
14
15 #add_pch(explorer precomp.h)
16 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
17
18 list(APPEND SOURCE
19 shell/mainframe.cpp
20 shell/unixfs.cpp
21 shell/ntobjfs.cpp
22 shell/filechild.cpp
23 shell/shellfs.cpp
24 shell/fatfs.cpp
25 shell/pane.cpp
26 shell/regfs.cpp
27 shell/webchild.cpp
28 shell/entries.cpp
29 shell/shellbrowser.cpp
30 shell/winfs.cpp
31 dialogs/searchprogram.cpp
32 dialogs/settings.cpp
33 i386-stub-win32.c
34 taskbar/taskbar.cpp
35 taskbar/favorites.cpp
36 taskbar/quicklaunch.cpp
37 taskbar/desktopbar.cpp
38 taskbar/startmenu.cpp
39 taskbar/traynotify.cpp
40 precomp.cpp
41 explorer.rc
42 services/startup.c
43 services/shellservices.cpp
44 desktop/desktop.cpp
45 explorer.cpp
46 utility/xs-native.cpp
47 utility/shellclasses.cpp
48 utility/dragdropimpl.cpp
49 utility/utility.cpp
50 utility/xmlstorage.cpp
51 # utility/splitpath.c msvcrt has _wsplitpath already
52 utility/window.cpp
53 utility/shellbrowserimpl.cpp) # utility/shelltests.cpp
54
55 add_executable(explorer ${SOURCE})
56
57 set_subsystem(explorer windows)
58 set_entrypoint(explorer WinMainCRTStartup)
59
60 target_link_libraries(explorer
61 -lsupc++
62 -lstdc++
63 -lgcc
64 -lmingwex
65 wine
66 uuid)
67
68 add_importlibs(explorer advapi32 gdi32 user32 ws2_32 msimg32 comctl32 ole32 oleaut32 shell32 notifyhook msvcrt kernel32 ntdll)
69 set_image_base(explorer 0x00400000)
70 add_dependencies(explorer psdk)
71 add_cd_file(TARGET explorer DESTINATION reactos FOR all)
72 add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/explorer-cfg-template.xml DESTINATION reactos FOR all)