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