[RSHELL]
[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}/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 atlnew
22 uuid
23 wine)
24
25 add_importlibs(rshell
26 uxtheme
27 shlwapi
28 advapi32
29 shell32
30 comctl32
31 gdi32
32 ole32
33 user32
34 msvcrt
35 kernel32
36 ntdll)
37
38 add_custom_command(TARGET rshell POST_BUILD
39 COMMAND "${CMAKE_COMMAND}" -E copy
40 "$<TARGET_FILE:rshell>"
41 "$<TARGET_FILE_DIR:explorer>/$<TARGET_FILE_NAME:rshell>"
42 COMMENT "Copying to output directory")
43
44 add_custom_command(TARGET rshell POST_BUILD
45 COMMAND "${CMAKE_COMMAND}" -E copy
46 "$<TARGET_FILE:rshell>"
47 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:rshell>"
48 COMMENT "Copying to output directory")
49
50 add_custom_command(TARGET rshell POST_BUILD
51 COMMAND "${CMAKE_COMMAND}" -E copy
52 "$<TARGET_FILE:rshell>"
53 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:rshell>"
54 COMMENT "Copying to output directory")