Skip to content
Permalink
c426d32532
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
71 lines (59 sloc) 1.65 KB
cmake_minimum_required(VERSION 2.8.3)
project(vesc_driver)
find_package(catkin REQUIRED COMPONENTS
nodelet
pluginlib
roscpp
std_msgs
vesc_msgs
serial
)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS nodelet pluginlib roscpp std_msgs vesc_msgs serial
)
###########
## Build ##
###########
include_directories(
include
${Boost_INCLUDE_DIR}
${catkin_INCLUDE_DIRS}
)
# node executable
add_executable(vesc_driver_node src/vesc_driver_node.cpp
src/vesc_driver.cpp
src/vesc_interface.cpp
src/vesc_packet.cpp
src/vesc_packet_factory.cpp)
target_link_libraries(vesc_driver_node
${catkin_LIBRARIES}
)
# nodelet library
add_library(vesc_driver_nodelet src/vesc_driver_nodelet.cpp
src/vesc_driver.cpp
src/vesc_interface.cpp
src/vesc_packet.cpp
src/vesc_packet_factory.cpp)
target_link_libraries(vesc_driver_nodelet
${catkin_LIBRARIES}
)
#############
## Install ##
#############
install(TARGETS vesc_driver_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(TARGETS vesc_driver_nodelet
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})
install(FILES vesc_driver_nodelet.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch)
#############
## Testing ##
#############
# TODO