Skip to content

Commit

Permalink
Fixes a problem that the binrary/libraries are not packed into deb fi…
Browse files Browse the repository at this point in the history
…le (#18)
  • Loading branch information
BillWSY authored Oct 7, 2017
1 parent bdc3112 commit c9eba84
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gcloud_speech/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,11 @@ if(GCLOUD_SPEECH_LOCAL_MAIN)
target_link_libraries(speech_local_main
gcloud_speech_record_audio_lib gcloud_speech_lib gflags glog)
endif()

install(
TARGETS gcloud_speech_action_node gcloud_speech_lib
cogrob_gcloud_speech_proto googleapis_speech_proto
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
12 changes: 12 additions & 0 deletions gcloud_speech_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,15 @@ target_link_libraries(print_rms
add_executable(record_microphone_audio src/record_microphone_audio.cc)
target_link_libraries(record_microphone_audio ${catkin_LIBRARIES}
gcloud_speech_utils_record_audio_lib gflags glog)

install(
TARGETS gcloud_speech_utils_record_audio_lib print_rms record_microphone_audio
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

catkin_install_python(
PROGRAMS scripts/example_client.py scripts/playback_microphone_audio.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

0 comments on commit c9eba84

Please sign in to comment.