af12cd6005d18d6dfdb3856a9e9dcec68f0024dd
[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_cd_file(TARGET rshell DESTINATION reactos FOR all)
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")