Skip to content

Commit

Permalink
add link from CATKIN_PACKAGE_SHARE_DESTINATION to node_scriptws/openpose
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Dec 14, 2022
1 parent 4cfc593 commit 1b6203c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion jsk_perception/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,16 @@ catkin_install_python(
PROGRAMS ${NODE_SCRIPT_PROGRAMS}
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/node_scripts
)
if(CATKIN_DEVEL_PREFIX)
add_custom_target(link_dir_mkdir ALL
COMMAND ${CMAKE_COMMAND} -E make_directory ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_SHARE_DESTINATION}/node_scripts)
foreach(SUB_DIR craft deep_sort hmr openpose)
add_custom_target(link_dir_${SUB_DIR} ALL
COMMAND ${CMAKE_COMMAND} -E create_symlink ${PROJECT_SOURCE_DIR}/node_scripts/${SUB_DIR} ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_SHARE_DESTINATION}/node_scripts/${SUB_DIR})
endforeach()
endif(CATKIN_DEVEL_PREFIX)
endif()


# ------------------------------------------------------------------------------------
# Test
# ------------------------------------------------------------------------------------
Expand Down

0 comments on commit 1b6203c

Please sign in to comment.