[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 CMenuSite.cpp
14 CStartMenu.cpp
15 misc.cpp
16 wraplog.cpp
17 logging/CMenuBandWrap.cpp
18 logging/CMenuDeskBarWrap.cpp
19 logging/CMenuSiteWrap.cpp
20 ${CMAKE_CURRENT_BINARY_DIR}/rshell.def)
21
22 add_library(rshell SHARED ${SOURCE})
23
24 set_module_type(rshell win32dll UNICODE)
25
26 target_link_libraries(rshell
27 atlnew
28 uuid
29 wine)
30
31 add_importlibs(rshell
32 shlwapi
33 shell32
34 gdi32
35 ole32
36 user32
37 msvcrt
38 kernel32
39 ntdll)
40
41 add_cd_file(TARGET rshell DESTINATION reactos FOR all)
42
43 add_custom_command(TARGET rshell POST_BUILD
44 COMMAND "${CMAKE_COMMAND}" -E copy
45 "$<TARGET_FILE:rshell>"
46 "$<TARGET_FILE_DIR:explorer_new>/$<TARGET_FILE_NAME:rshell>"
47 COMMENT "Copying to output directory")