Skip to content
Snippets Groups Projects
Commit 67e22585 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[cmake] Improved target naming

parent 71df59b0
No related branches found
No related tags found
No related merge requests found
......@@ -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 ApplyJointsForces)
set(gz_gep_tools_plugin gz-sim-apply-joints-forces)
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
......
......@@ -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
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment