9b913ae9c4782d9eaf9f50486d5ec4df1ecf8eee
[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(-DWIN32)
12 add_definitions(-D__WINDRES__)
13
14 #add_pch(explorer ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h SOURCE)
15 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
16
17 list(APPEND SOURCE
18 shell/mainframe.cpp
19 shell/unixfs.cpp
20 shell/ntobjfs.cpp
21 shell/filechild.cpp
22 shell/shellfs.cpp
23 shell/fatfs.cpp
24 shell/pane.cpp
25 shell/regfs.cpp
26 shell/webchild.cpp
27 shell/entries.cpp
28 shell/shellbrowser.cpp
29 shell/winfs.cpp
30 dialogs/searchprogram.cpp
31 dialogs/settings.cpp
32 i386-stub-win32.c
33 taskbar/taskbar.cpp
34 taskbar/favorites.cpp
35 taskbar/quicklaunch.cpp
36 taskbar/desktopbar.cpp
37 taskbar/startmenu.cpp
38 taskbar/traynotify.cpp
39 precomp.cpp
40 explorer.rc
41 services/startup.c
42 services/shellservices.cpp
43 desktop/desktop.cpp
44 explorer.cpp
45 utility/xs-native.cpp
46 utility/shellclasses.cpp
47 utility/dragdropimpl.cpp
48 utility/utility.cpp
49 utility/xmlstorage.cpp
50 utility/splitpath.c
51 utility/window.cpp
52 utility/shellbrowserimpl.cpp) # utility/shelltests.cpp
53
54 add_executable(explorer ${SOURCE}) #${CMAKE_CURRENT_BINARY_DIR}/explorer_precomp.h.gch ${SOURCE})
55
56 set_subsystem(explorer windows)
57 set_entrypoint(explorer WinMainCRTStartup)
58
59 target_link_libraries(explorer
60 -lsupc++
61 -lstdc++
62 -lgcc
63 -lmingwex
64 wine
65 mingw_wmain
66 mingw_common
67 uuid
68 -ladvapi32
69 -lgdi32
70 -luser32
71 -lws2_32
72 -lmsimg32
73 -lcomctl32
74 -lole32
75 -loleaut32
76 -lshell32
77 -lnotifyhook
78 -lmsvcrt
79 -lkernel32
80 -lntdll)
81
82 set_image_base(explorer 0x00400000)
83
84 add_dependencies(explorer psdk buildno_header)
85 add_livecd_target(explorer reactos)