xref: /reactos/base/shell/rshell/CMakeLists.txt (revision fb5d5ecd)
1PROJECT(SHELL)
2
3set_cpp(WITH_RUNTIME)
4
5include_directories(
6    ${REACTOS_SOURCE_DIR}/sdk/lib/atl)
7
8spec2def(rshell.dll rshell.spec ADD_IMPORTLIB)
9
10list(APPEND SOURCE
11    CQuickLaunchBand.cpp
12    misc.cpp
13    ${CMAKE_CURRENT_BINARY_DIR}/rshell.def)
14
15add_library(rshell SHARED ${SOURCE})
16
17set_module_type(rshell win32dll UNICODE)
18
19target_link_libraries(rshell
20    shellbars
21    shellmenu
22    shelldesktop
23    atlnew
24    uuid
25    wine)
26
27add_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
41add_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
47add_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")
52