00ff621dff0fca8fae3ec4b569a1f719920c82c3
[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 ${CMAKE_CURRENT_BINARY_DIR}/rshell.def)
20
21 add_library(rshell SHARED ${SOURCE})
22
23 set_module_type(rshell win32dll UNICODE)
24
25 target_link_libraries(rshell
26 atlnew
27 uuid
28 wine)
29
30 add_importlibs(rshell
31 shlwapi
32 shell32
33 gdi32
34 ole32
35 user32
36 msvcrt
37 kernel32
38 ntdll)
39
40 add_cd_file(TARGET rshell DESTINATION reactos FOR all)
41
42 add_custom_command(TARGET rshell POST_BUILD
43 COMMAND "${CMAKE_COMMAND}" -E copy
44 "$<TARGET_FILE:rshell>"
45 "$<TARGET_FILE_DIR:explorer>/$<TARGET_FILE_NAME:rshell>"
46 COMMENT "Copying to output directory")
47
48 add_custom_command(TARGET rshell POST_BUILD
49 COMMAND "${CMAKE_COMMAND}" -E copy
50 "$<TARGET_FILE:rshell>"
51 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:rshell>"
52 COMMENT "Copying to output directory")
53
54 add_custom_command(TARGET rshell POST_BUILD
55 COMMAND "${CMAKE_COMMAND}" -E copy
56 "$<TARGET_FILE:rshell>"
57 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:rshell>"
58 COMMENT "Copying to output directory")