[RSHELL]
[reactos.git] / base / shell / rshell / CMakeLists.txt
1 PROJECT(SHELL)
2
3 set_cpp(WITH_RUNTIME)
4
5 include_directories(${REACTOS_SOURCE_DIR}/lib/atl)
6
7 spec2def(rshell.dll rshell.spec ADD_IMPORTLIB)
8
9 list(APPEND SOURCE
10 CDesktopBrowser.cpp
11 CMenuBand.cpp
12 CMenuDeskBar.cpp
13 CMenuFocusManager.cpp
14 CMenuSite.cpp
15 CMenuToolbars.cpp
16 CStartMenu.cpp
17 misc.cpp
18 wraplog.cpp
19 logging/CMenuBandWrap.cpp
20 logging/CMenuDeskBarWrap.cpp
21 logging/CMenuSiteWrap.cpp
22 ${CMAKE_CURRENT_BINARY_DIR}/rshell.def)
23
24 add_library(rshell SHARED ${SOURCE})
25
26 set_module_type(rshell win32dll UNICODE)
27
28 target_link_libraries(rshell
29 atlnew
30 uuid
31 wine)
32
33 add_importlibs(rshell
34 shlwapi
35 shell32
36 gdi32
37 ole32
38 user32
39 msvcrt
40 kernel32
41 ntdll)
42
43 add_cd_file(TARGET rshell DESTINATION reactos FOR all)
44
45 add_custom_command(TARGET rshell POST_BUILD
46 COMMAND "${CMAKE_COMMAND}" -E copy
47 "$<TARGET_FILE:rshell>"
48 "$<TARGET_FILE_DIR:explorer_new>/$<TARGET_FILE_NAME:rshell>"
49 COMMENT "Copying to output directory")