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