[CMAKE]
[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 -D_DLL -D__USE_CRTIMP)
15
16 #add_pch(explorer ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h SOURCE)
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/splitpath.c msvcrt has _wsplitpath already
53 utility/window.cpp
54 utility/shellbrowserimpl.cpp) # utility/shelltests.cpp
55
56 add_executable(explorer ${SOURCE}) #${CMAKE_CURRENT_BINARY_DIR}/explorer_precomp.h.gch ${SOURCE})
57
58 set_subsystem(explorer windows)
59 set_entrypoint(explorer WinMainCRTStartup)
60
61 target_link_libraries(explorer
62 -lsupc++
63 -lstdc++
64 -lgcc
65 -lmingwex
66 wine
67 mingw_wmain
68 mingw_common
69 uuid)
70
71 add_importlibs(explorer advapi32 gdi32 user32 ws2_32 msimg32 comctl32 ole32 oleaut32 shell32 notifyhook msvcrt kernel32 ntdll)
72
73 set_image_base(explorer 0x00400000)
74
75 add_dependencies(explorer psdk)
76 add_cab_target(explorer 4)
77 add_cab(${CMAKE_CURRENT_SOURCE_DIR}/explorer-cfg-template.xml 4)