File tree Expand file tree Collapse file tree 4 files changed +23
-6
lines changed Expand file tree Collapse file tree 4 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -118,12 +118,21 @@ configure_file(openarm-can.pc.in ${CMAKE_CURRENT_BINARY_DIR}/openarm-can.pc
118118install (FILES ${CMAKE_CURRENT_BINARY_DIR} /openarm-can.pc
119119 DESTINATION ${CMAKE_INSTALL_LIBDIR} /pkgconfig)
120120
121+ set (OPENARM_CAN_LIBEXEC_DIR "${CMAKE_INSTALL_LIBEXECDIR} /openarm-can" )
122+
121123add_executable (motor-check setup/motor_check.cpp)
122124target_link_libraries (motor-check openarm_can)
125+ install (TARGETS motor-check DESTINATION ${OPENARM_CAN_LIBEXEC_DIR} )
123126
124127# Add motor control example executable
125128add_executable (openarm-demo examples/demo.cpp)
126129target_link_libraries (openarm-demo openarm_can)
130+ install (TARGETS openarm-demo DESTINATION ${OPENARM_CAN_LIBEXEC_DIR} )
131+
132+ # Install scripts
133+ install (PROGRAMS setup/change_baudrate.py setup/configure_socketcan.sh
134+ setup/configure_socketcan_4_arms.sh setup/set_zero.sh
135+ DESTINATION ${OPENARM_CAN_LIBEXEC_DIR} )
127136
128137# Add tests
129138if (BUILD_TESTING)
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- usr/include/*
15+ usr/include/
1616usr/lib/*/lib*.so
17- usr/lib/*/pkgconfig/*
18- usr/lib/*/cmake/OpenArmCAN/*
17+ usr/lib/*/pkgconfig/
18+ usr/lib/*/cmake/OpenArmCAN/
Original file line number Diff line number Diff line change 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/
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
3636%description devel
3737Header files and development libraries for OpenARM CAN control library.
3838
39+ %package utils
40+ Summary: Setup and configuration utility scripts
41+
42+ %description utils
43+ Setup and configuration utility scripts.
44+
3945%prep
4046%autosetup
4147
@@ -60,5 +66,9 @@ Header files and development libraries for OpenARM CAN control library.
6066%{_libdir }/libopenarm_can.so
6167%{_libdir }/pkgconfig/openarm-can.pc
6268
69+ %files utils
70+ %license LICENSE.txt
71+ %{_libexecdir }/openarm-can/
72+
6373%changelog
6474%autochangelog
You can’t perform that action at this time.
0 commit comments