[RSHELL] -Link to shellbars and export CBandSite_CreateInstance and CBandSiteMenu_Cre...
[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
8 spec2def(rshell.dll rshell.spec ADD_IMPORTLIB)
9
10 list(APPEND SOURCE
11 misc.cpp
12 ${CMAKE_CURRENT_BINARY_DIR}/rshell.def)
13
14 add_library(rshell SHARED ${SOURCE})
15
16 set_module_type(rshell win32dll UNICODE)
17
18 target_link_libraries(rshell
19 shellbars
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")