mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 23:00:07 -06:00
Add a `VS_NO_SOLUTION_DEPLOY` target property to explicitly specify for each target whether to suppress VS solution deployment of the generated target project. Fixes: #18953
15 lines
355 B
CMake
15 lines
355 B
CMake
enable_language(CXX)
|
|
|
|
set(DEPLOY_DIR
|
|
"temp\\foodir"
|
|
)
|
|
|
|
add_library(foo SHARED foo.cpp)
|
|
|
|
set_target_properties(foo
|
|
PROPERTIES
|
|
DEPLOYMENT_ADDITIONAL_FILES "foo.dll|\\foo\\src\\dir\\on\\host|$(RemoteDirectory)|0;bar.dll|\\bar\\src\\dir|$(RemoteDirectory)bardir|0"
|
|
DEPLOYMENT_REMOTE_DIRECTORY ${DEPLOY_DIR}
|
|
VS_NO_SOLUTION_DEPLOY $<CONFIG:Release>
|
|
)
|