Skip to content

Commit 437fd33

Browse files
committed
Add installation of executables
WIP: ${PROJECT_NAME} will be `openarm_can`, but we want `openarm-can` for the path.
1 parent 6e1fa67 commit 437fd33

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,19 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/openarm-can.pc
120120

121121
add_executable(motor-check setup/motor_check.cpp)
122122
target_link_libraries(motor-check openarm_can)
123+
install(TARGETS motor-check DESTINATION libexec/${PROJECT_NAME})
123124

124125
# Add motor control example executable
125126
add_executable(openarm-demo examples/demo.cpp)
126127
target_link_libraries(openarm-demo openarm_can)
128+
install(TARGETS openarm-demo DESTINATION libexec/${PROJECT_NAME})
129+
130+
# Install scripts
131+
install(PROGRAMS setup/change_baudrate.py
132+
setup/configure_socketcan.sh
133+
setup/configure_socketcan_4_arms.sh
134+
setup/set_zero.sh
135+
DESTINATION libexec/${PROJECT_NAME})
127136

128137
# Add tests
129138
if(BUILD_TESTING)

packages/debian/openarm-can-utils.install

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
setup/configure_socketcan.sh usr/libexec/openarm-can
16-
setup/set_zero.sh usr/libexec/openarm-can
17-
setup/change_baudrate.py usr/libexec/openarm-can
15+
usr/libexec/*

0 commit comments

Comments
 (0)