1
2add_subdirectory(notifyhook)
3
4add_definitions(
5    -DWIN32
6    -D__WINDRES__)
7
8include_directories(${CMAKE_CURRENT_SOURCE_DIR})
9
10list(APPEND SOURCE
11    shell/mainframe.cpp
12    shell/unixfs.cpp
13    shell/ntobjfs.cpp
14    shell/filechild.cpp
15    shell/shellfs.cpp
16    shell/fatfs.cpp
17    shell/pane.cpp
18    shell/regfs.cpp
19    shell/webchild.cpp
20    shell/entries.cpp
21    shell/shellbrowser.cpp
22    shell/winfs.cpp
23    dialogs/searchprogram.cpp
24    dialogs/settings.cpp
25    taskbar/taskbar.cpp
26    taskbar/favorites.cpp
27    taskbar/quicklaunch.cpp
28    taskbar/desktopbar.cpp
29    taskbar/startmenu.cpp
30    taskbar/traynotify.cpp
31    services/shellservices.cpp
32    desktop/desktop.cpp
33    explorer.cpp
34    utility/xs-native.cpp
35    utility/shellclasses.cpp
36    utility/dragdropimpl.cpp
37    utility/utility.cpp
38    utility/xmlstorage.cpp
39    utility/window.cpp
40    utility/shellbrowserimpl.cpp) #    utility/shelltests.cpp
41
42list(APPEND PCH_SKIP_SOURCE
43    services/startup.c)
44
45if(ARCH STREQUAL "i386")
46    list(APPEND PCH_SKIP_SOURCE i386-stub-win32.c)
47endif()
48
49add_executable(explorer_old
50    ${SOURCE}
51    ${PCH_SKIP_SOURCE}
52    explorer.rc)
53
54target_link_libraries(explorer_old comsupp wine uuid cppstl)
55set_target_cpp_properties(explorer_old WITH_EXCEPTIONS WITH_RTTI)
56set_module_type(explorer_old win32gui UNICODE)
57add_importlibs(explorer_old advapi32 gdi32 user32 ws2_32 msimg32 comctl32 ole32 oleaut32 shell32 shlwapi notifyhook msvcrt kernel32 ntdll)
58add_pch(explorer_old precomp.h "${PCH_SKIP_SOURCE}")
59add_dependencies(explorer_old psdk)
60add_cd_file(TARGET explorer_old DESTINATION reactos FOR all)
61add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/explorer-cfg-template.xml DESTINATION reactos FOR all)
62