5d4170d58e561c33dd76667d0615edf0277e89bb
[reactos.git] / 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
8 spec2def(rshell.dll rshell.spec ADD_IMPORTLIB)
9
10 list(APPEND SOURCE
11 CQuickLaunchBand.cpp
12 misc.cpp
13 ${CMAKE_CURRENT_BINARY_DIR}/rshell.def)
14
15 add_library(rshell MODULE ${SOURCE})
16
17 set_module_type(rshell win32dll UNICODE)
18
19 target_link_libraries(rshell
20 shellbars
21 shellmenu
22 shelldesktop
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")