mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
907025a018
This takes care of adding the relvant include directory and the _ATL_NO_EXCEPTIONS define, if needed
47 lines
960 B
CMake
47 lines
960 B
CMake
PROJECT(SHELL)
|
|
|
|
spec2def(rshell.dll rshell.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
CQuickLaunchBand.cpp
|
|
misc.cpp
|
|
${CMAKE_CURRENT_BINARY_DIR}/rshell.def)
|
|
|
|
add_library(rshell MODULE ${SOURCE})
|
|
|
|
set_module_type(rshell win32dll UNICODE)
|
|
|
|
target_link_libraries(rshell
|
|
shellbars
|
|
shellmenu
|
|
shelldesktop
|
|
uuid
|
|
wine
|
|
cpprt
|
|
atl_classes)
|
|
|
|
add_importlibs(rshell
|
|
browseui
|
|
uxtheme
|
|
shlwapi
|
|
advapi32
|
|
shell32
|
|
comctl32
|
|
gdi32
|
|
ole32
|
|
user32
|
|
msvcrt
|
|
kernel32
|
|
ntdll)
|
|
|
|
add_custom_command(TARGET rshell POST_BUILD
|
|
COMMAND "${CMAKE_COMMAND}" -E copy
|
|
"$<TARGET_FILE:rshell>"
|
|
"$<TARGET_FILE_DIR:explorer>/$<TARGET_FILE_NAME:rshell>"
|
|
COMMENT "Copying to output directory")
|
|
|
|
add_custom_command(TARGET rshell POST_BUILD
|
|
COMMAND "${CMAKE_COMMAND}" -E copy
|
|
"$<TARGET_FILE:rshell>"
|
|
"$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:rshell>"
|
|
COMMENT "Copying to output directory")
|