Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding install targets #56

Merged
merged 1 commit into from
Jun 28, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions gazebo_ros_control/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ if (PKG_CONFIG_FOUND)
pkg_check_modules(GAZEBO gazebo)
endif()

catkin_package(
CATKIN_DEPENDS
roscpp
gazebo_ros
controller_manager
pluginlib
INCLUDE_DIRS include
)

link_directories(${GAZEBO_LIBRARY_DIRS})
include_directories(include ${Boost_INCLUDE_DIR} ${catkin_INCLUDE_DIRS} ${GAZEBO_INCLUDE_DIRS})
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also. I think these indents were making the world end.


Expand All @@ -25,13 +34,16 @@ target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES})
add_library(default_robot_hw_sim src/default_robot_hw_sim.cpp)
target_link_libraries(default_robot_hw_sim ${catkin_LIBRARIES})

catkin_package(
DEPENDS
roscpp
gazebo_ros
controller_manager
pluginlib
CATKIN_DEPENDS # TODO
INCLUDE_DIRS include
LIBRARIES # TODO
)
# Install
install(TARGETS ${PROJECT_NAME} default_robot_hw_sim
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)

install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)

install(FILES robot_hw_sim_plugins.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)