[USB-BRINGUP-TRUNK]
[reactos.git] / base / shell / explorer / CMakeLists.txt
1
2 add_subdirectory(notifyhook)
3
4 set_rc_compiler()
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 -DUNICODE -D_UNICODE)
15
16 #add_pch(explorer precomp.h)
17 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
18
19 list(APPEND SOURCE
20 shell/mainframe.cpp
21 shell/unixfs.cpp
22 shell/ntobjfs.cpp
23 shell/filechild.cpp
24 shell/shellfs.cpp
25 shell/fatfs.cpp
26 shell/pane.cpp
27 shell/regfs.cpp
28 shell/webchild.cpp
29 shell/entries.cpp
30 shell/shellbrowser.cpp
31 shell/winfs.cpp
32 dialogs/searchprogram.cpp
33 dialogs/settings.cpp
34 i386-stub-win32.c
35 taskbar/taskbar.cpp
36 taskbar/favorites.cpp
37 taskbar/quicklaunch.cpp
38 taskbar/desktopbar.cpp
39 taskbar/startmenu.cpp
40 taskbar/traynotify.cpp
41 precomp.cpp
42 explorer.rc
43 services/startup.c
44 services/shellservices.cpp
45 desktop/desktop.cpp
46 explorer.cpp
47 utility/xs-native.cpp
48 utility/shellclasses.cpp
49 utility/dragdropimpl.cpp
50 utility/utility.cpp
51 utility/xmlstorage.cpp
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 wWinMainCRTStartup)
59
60 target_link_libraries(explorer
61 -lsupc++
62 -lstdc++
63 -lgcc
64 -lmingwex
65 -lmingw32
66 wine
67 uuid)
68
69 add_importlibs(explorer advapi32 gdi32 user32 ws2_32 msimg32 comctl32 ole32 oleaut32 shell32 notifyhook msvcrt kernel32 ntdll)
70 set_image_base(explorer 0x00400000)
71 add_dependencies(explorer psdk)
72 add_cd_file(TARGET explorer DESTINATION reactos FOR all)
73 add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/explorer-cfg-template.xml DESTINATION reactos FOR all)