39a2b19d236f682154167390e9f556085e5828c5
[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 SHARED ${SOURCE})
16
17 set_module_type(rshell win32dll UNICODE)
18
19 target_link_libraries(rshell
20 shellbars
21 shellmenu
22 shelldesktop
23 atlnew
24 uuid
25 wine)
26
27 add_importlibs(rshell
28 browseui
29 uxtheme
30 shlwapi
31 advapi32
32 shell32
33 comctl32
34 gdi32
35 ole32
36 user32
37 msvcrt
38 kernel32
39 ntdll)
40
41 add_custom_command(TARGET rshell POST_BUILD
42 COMMAND "${CMAKE_COMMAND}" -E copy
43 "$<TARGET_FILE:rshell>"
44 "$<TARGET_FILE_DIR:explorer>/$<TARGET_FILE_NAME:rshell>"
45 COMMENT "Copying to output directory")
46
47 add_custom_command(TARGET rshell POST_BUILD
48 COMMAND "${CMAKE_COMMAND}" -E copy
49 "$<TARGET_FILE:rshell>"
50 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:rshell>"
51 COMMENT "Copying to output directory")