Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
iMSTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ben Boeckel
iMSTK
Commits
0590cec5
Commit
0590cec5
authored
3 years ago
by
Andrew Wilson
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Fix working directory setting
parent
ed5501e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/Wrappers/csharp/Examples/CMakeLists.txt
+8
-5
8 additions, 5 deletions
Source/Wrappers/csharp/Examples/CMakeLists.txt
with
8 additions
and
5 deletions
Source/Wrappers/csharp/Examples/CMakeLists.txt
+
8
−
5
View file @
0590cec5
...
...
@@ -10,11 +10,14 @@ function(add_example example_name sources)
set_property
(
TARGET
${
target
}
PROPERTY VS_DOTNET_TARGET_FRAMEWORK_VERSION
"v4.6.1"
)
set_property
(
TARGET
${
target
}
PROPERTY VS_DOTNET_REFERENCES
"System;iMSTKCSharp"
)
set_property
(
TARGET
${
target
}
PROPERTY FOLDER Examples/CSharp
)
# Neither of these actually work, has to be set in the project explicitely
set_property
(
TARGET
${
target
}
PROPERTY VS_DEBUGGER_WORKING_DIRECTORY
"
${
CMAKE_INSTALL_PREFIX
}
/bin"
)
set_property
(
TARGET
${
target
}
PROPERTY VS_DEBUGGER_ENVIRONMENT
"PATH=
${
CMAKE_INSTALL_PREFIX
}
/bin;%PATH%"
)
if
(
MSVC
)
set
(
BIN_PATH
"
${
CMAKE_INSTALL_PREFIX
}
/bin/"
)
# csproj files picky about slashes
string
(
REPLACE
"/"
"
\\
"
BIN_PATH
"
${
BIN_PATH
}
"
)
set_property
(
TARGET
${
target
}
PROPERTY VS_GLOBAL_StartWorkingDirectory
${
BIN_PATH
}
)
endif
()
add_custom_command
(
TARGET
${
target
}
POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E copy $<TARGET_FILE:
${
target
}
>
${
CMAKE_INSTALL_PREFIX
}
/bin
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment