xref: /reactos/base/shell/rshell/CMakeLists.txt (revision 7e069ccd)
1PROJECT(SHELL)
2
3add_definitions(
4    -D_ATL_NO_EXCEPTIONS)
5
6set_cpp(WITH_RUNTIME)
7
8include_directories(
9    ${REACTOS_SOURCE_DIR}/sdk/lib/atl)
10
11spec2def(rshell.dll rshell.spec ADD_IMPORTLIB)
12
13list(APPEND SOURCE
14    CQuickLaunchBand.cpp
15    misc.cpp
16    ${CMAKE_CURRENT_BINARY_DIR}/rshell.def)
17
18add_library(rshell MODULE ${SOURCE})
19
20set_module_type(rshell win32dll UNICODE)
21
22target_link_libraries(rshell
23    shellbars
24    shellmenu
25    shelldesktop
26    uuid
27    wine)
28
29add_importlibs(rshell
30    browseui
31    uxtheme
32    shlwapi
33    advapi32
34    shell32
35    comctl32
36    gdi32
37    ole32
38    user32
39    msvcrt
40    kernel32
41    ntdll)
42
43add_custom_command(TARGET rshell POST_BUILD
44  COMMAND "${CMAKE_COMMAND}" -E copy
45     "$<TARGET_FILE:rshell>"
46     "$<TARGET_FILE_DIR:explorer>/$<TARGET_FILE_NAME:rshell>"
47  COMMENT "Copying to output directory")
48
49add_custom_command(TARGET rshell POST_BUILD
50  COMMAND "${CMAKE_COMMAND}" -E copy
51     "$<TARGET_FILE:rshell>"
52     "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:rshell>"
53  COMMENT "Copying to output directory")
54