Skip to content

Commit

Permalink
[ROS1/CMake] Modify CMake scripts to support catkin_make
Browse files Browse the repository at this point in the history
This patch modifies the CMake script files for ROS1 to support
catkin_make.

Signed-off-by: Wook Song <[email protected]>
  • Loading branch information
wooksong authored and myungjoo committed Oct 22, 2020
1 parent fabd969 commit 638e6cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gst/tensor_ros_sink/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ TARGET_LINK_LIBRARIES(tensor_ros_sink
${PKGS_LIBRARIES}
)

IF(CATKIN_DEVEL_PREFIX)
SET_TARGET_PROPERTIES(tensor_ros_sink
PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/${NNS_INSTALL_GSTDIR}
)
ENDIF(CATKIN_DEVEL_PREFIX)

INSTALL(TARGETS tensor_ros_sink
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${NNS_INSTALL_GSTDIR}
Expand Down
6 changes: 6 additions & 0 deletions gst/tensor_ros_src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ TARGET_LINK_LIBRARIES(tensor_ros_src
${PKGS_LIBRARIES}
)

IF(CATKIN_DEVEL_PREFIX)
SET_TARGET_PROPERTIES(tensor_ros_src
PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/${NNS_INSTALL_GSTDIR}
)
ENDIF(CATKIN_DEVEL_PREFIX)

INSTALL(TARGETS tensor_ros_src
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${NNS_INSTALL_GSTDIR}
Expand Down

0 comments on commit 638e6cc

Please sign in to comment.