Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gz_gep_tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Olivier Stasse
gz_gep_tools
Commits
67e22585
Commit
67e22585
authored
2 weeks ago
by
Olivier Stasse
Browse files
Options
Downloads
Patches
Plain Diff
[cmake] Improved target naming
parent
71df59b0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugin/CMakeLists.txt
+2
-2
2 additions, 2 deletions
plugin/CMakeLists.txt
plugin/msgs/CMakeLists.txt
+9
-5
9 additions, 5 deletions
plugin/msgs/CMakeLists.txt
with
11 additions
and
7 deletions
plugin/CMakeLists.txt
+
2
−
2
View file @
67e22585
...
...
@@ -6,7 +6,7 @@ find_package(gz-sim REQUIRED)
find_package
(
gz_plugin_vendor REQUIRED
)
find_package
(
gz-plugin REQUIRED
)
set
(
gz_gep_tools_plugin
A
pply
J
oints
F
orces
)
set
(
gz_gep_tools_plugin
gz-sim-a
pply
-j
oints
-f
orces
)
add_library
(
${
gz_gep_tools_plugin
}
-system SHARED
ApplyJointsForces.cc
)
...
...
@@ -14,7 +14,7 @@ add_library(${gz_gep_tools_plugin}-system SHARED
target_link_libraries
(
${
gz_gep_tools_plugin
}
-system PRIVATE
gz-sim::gz-sim
gz-plugin::register
gz_gep_tools
-msgs
{$PROJECT_NAME}
-msgs
)
# Install directories
...
...
This diff is collapsed.
Click to expand it.
plugin/msgs/CMakeLists.txt
+
9
−
5
View file @
67e22585
...
...
@@ -27,8 +27,12 @@ gz_msgs_generate_messages(
DEPENDENCIES gz-msgs
${
GZ_MSGS_VER
}
::gz-msgs
${
GZ_MSGS_VER
}
)
# install(TARGETS
# LIBRARY DESTINATION lib
# ARCHIVE DESTINATION lib
# RUNTIME DESTINATION bin
# )
# From gz_msgs_generate.cmake in gz-msgs package
# TARGET in gz_msgs_generate_messages is translated in a cmake target named
# ${PROJET_NAME}-${generate_messages_TARGET}
# which means here ${PROJET_NAME}-msgs
install
(
TARGETS
${
PROJECT_NAME
}
-msgs
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION 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