Skip to content

Commit

Permalink
[jsk_spot_robot] fix CMakeLists.txt to work on install layout
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Nov 16, 2024
1 parent 18d5c62 commit a9b4578
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
20 changes: 20 additions & 0 deletions jsk_spot_robot/jsk_spot_startup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,23 @@ if(CATKIN_ENABLE_TESTING)
roslint_python()
roslint_add_test()
endif()

#############
## Install ##
#############
file(GLOB_RECURSE SCRIPT_PROGRAMS node_scripts/*)
foreach(SCRIPT_PROGRAM ${SCRIPT_PROGRAMS})
if("${SCRIPT_PROGRAM}" MATCHES ".*\\.py$")
catkin_install_python(PROGRAMS ${SCRIPT_PROGRAM} DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
else()
install(PROGRAMS ${SCRIPT_PROGRAM} DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/node_scripts)
endif()
endforeach()

install(DIRECTORY app config launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS)

file(GLOB LISP_FILES *.l)
install(FILES ${LISP_FILES} nao.yaml DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})

5 changes: 3 additions & 2 deletions jsk_spot_robot/spoteus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ add_custom_command(OUTPUT ${PROJECT_SOURCE_DIR}/spot.l
add_custom_target(compile_spot ALL DEPENDS ${PROJECT_SOURCE_DIR}/spot.l)


install(DIRECTORY euslisp test
install(DIRECTORY demo test
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS)

install(FILES spot.l spot-interface.l spot-util.l spot.yaml DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
file(GLOB LISP_FILES *.l)
install(FILES ${LISP_FILES} spot.yaml DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})

if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS rostest)
Expand Down

0 comments on commit a9b4578

Please sign in to comment.