[RSHELL]
[reactos.git] / base / shell / rshell / CMakeLists.txt
1 PROJECT(SHELL)
2
3 set_cpp(WITH_RUNTIME)
4
5 include_directories(${REACTOS_SOURCE_DIR}/lib/atl)
6
7 spec2def(rshell.dll rshell.spec ADD_IMPORTLIB)
8
9 list(APPEND SOURCE
10 CDesktopBrowser.cpp
11 CMenuBand.cpp
12 CMenuDeskBar.cpp
13 CMenuFocusManager.cpp
14 CMenuSite.cpp
15 CMenuToolbars.cpp
16 CMergedFolder.cpp
17 CStartMenu.cpp
18 misc.cpp
19 wraplog.cpp
20 logging/CMenuBandWrap.cpp
21 logging/CMenuDeskBarWrap.cpp
22 logging/CMenuSiteWrap.cpp
23 logging/CStartMenuSiteWrap.cpp
24 ${CMAKE_CURRENT_BINARY_DIR}/rshell.def)
25
26 add_library(rshell SHARED ${SOURCE})
27
28 set_module_type(rshell win32dll UNICODE)
29
30 target_link_libraries(rshell
31 atlnew
32 uuid
33 wine)
34
35 add_importlibs(rshell
36 shlwapi
37 shell32
38 gdi32
39 ole32
40 user32
41 msvcrt
42 kernel32
43 ntdll)
44
45 add_cd_file(TARGET rshell DESTINATION reactos FOR all)
46
47 add_custom_command(TARGET rshell POST_BUILD
48 COMMAND "${CMAKE_COMMAND}" -E copy
49 "$<TARGET_FILE:rshell>"
50 "$<TARGET_FILE_DIR:explorer>/$<TARGET_FILE_NAME:rshell>"
51 COMMENT "Copying to output directory")
52
53 add_custom_command(TARGET rshell POST_BUILD
54 COMMAND "${CMAKE_COMMAND}" -E copy
55 "$<TARGET_FILE:rshell>"
56 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:rshell>"
57 COMMENT "Copying to output directory")
58
59 add_custom_command(TARGET rshell POST_BUILD
60 COMMAND "${CMAKE_COMMAND}" -E copy
61 "$<TARGET_FILE:rshell>"
62 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:rshell>"
63 COMMENT "Copying to output directory")