ecd1a132bed99bf3456de16c33eec8c86927c96a
[reactos.git] / reactos / base / shell / rshell / CMakeLists.txt
1 PROJECT(SHELL)
2
3 set_cpp(WITH_RUNTIME)
4
5 include_directories(
6 ${REACTOS_SOURCE_DIR}/sdk/lib/atl
7 ${REACTOS_SOURCE_DIR}/dll/win32/shell32/shellmenu)
8
9 spec2def(rshell.dll rshell.spec ADD_IMPORTLIB)
10
11 list(APPEND SOURCE
12 misc.cpp
13 ${CMAKE_CURRENT_BINARY_DIR}/rshell.def)
14
15 add_library(rshell SHARED ${SOURCE})
16
17 set_module_type(rshell win32dll UNICODE)
18
19 target_link_libraries(rshell
20 shellmenu
21 shelldesktop
22 atlnew
23 uuid
24 wine)
25
26 add_importlibs(rshell
27 browseui
28 uxtheme
29 shlwapi
30 advapi32
31 shell32
32 comctl32
33 gdi32
34 ole32
35 user32
36 msvcrt
37 kernel32
38 ntdll)
39
40 add_custom_command(TARGET rshell POST_BUILD
41 COMMAND "${CMAKE_COMMAND}" -E copy
42 "$<TARGET_FILE:rshell>"
43 "$<TARGET_FILE_DIR:explorer>/$<TARGET_FILE_NAME:rshell>"
44 COMMENT "Copying to output directory")
45
46 add_custom_command(TARGET rshell POST_BUILD
47 COMMAND "${CMAKE_COMMAND}" -E copy
48 "$<TARGET_FILE:rshell>"
49 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:rshell>"
50 COMMENT "Copying to output directory")
51
52 add_custom_command(TARGET rshell POST_BUILD
53 COMMAND "${CMAKE_COMMAND}" -E copy
54 "$<TARGET_FILE:rshell>"
55 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:rshell>"
56 COMMENT "Copying to output directory")