Missing install instruction in CMakeLists.txt
WbHappy opened this issue · comments
Wb_GrLab commented
Hello !
Thanks a lot for another great ROS package !
I have been struggling a bit in installing this ROS package. While compiling it is not a problem at all (with or without Teaser++) generating its debians is something else..
I added the following to the CMakeLists.txt
:
#############
## Install ##
#############
install(TARGETS hdl_global_localization_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)
install(TARGETS hdl_global_localization
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)
if(TEASER_LIBRARIES)
install(TARGETS hdl_global_localization_teaser
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)
endif()
install(DIRECTORY launch/ config/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
The main issue is actually getting all the .so
files by building the libraries hdl_global_localization
and lastly hdl_global_localization_teaser
which is even worse...
Do you have some tips regarding this ?