Skip to content

Commit

Permalink
Merge pull request #1 from kgeorgiev93/hunter-1.11.13
Browse files Browse the repository at this point in the history
Hunterise actionlib
  • Loading branch information
ruslo authored Aug 14, 2019
2 parents 61dee11 + 42f2364 commit 0dae227
Show file tree
Hide file tree
Showing 7 changed files with 563 additions and 9 deletions.
31 changes: 27 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
cmake_minimum_required(VERSION 2.8.3)

include(cmake/HunterGate.cmake)
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.23.210.tar.gz"
SHA1 "edd9550bf64ebdffcd7934e6e8a5c094a7b3358b"
)

project(actionlib)

hunter_add_package(ros_common_msgs)
hunter_add_package(ros_message_generation)
hunter_add_package(ros)
hunter_add_package(ros_comm)
hunter_add_package(ros_std_msgs)

find_package(catkin REQUIRED COMPONENTS actionlib_msgs message_generation roscpp rosunit std_msgs)
find_package(Boost REQUIRED COMPONENTS thread)
find_package(Boost CONFIG REQUIRED COMPONENTS thread)

include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
link_directories(${catkin_LIBRARY_DIRS})
Expand All @@ -12,28 +25,38 @@ catkin_python_setup()
add_action_files(DIRECTORY action FILES Test.action TestRequest.action TwoInts.action)
generate_messages(DEPENDENCIES actionlib_msgs std_msgs)

set(PROJECT_INSTALLSPACE_LIBRARIES ros::actionlib)
catkin_package(
INCLUDE_DIRS include
LIBRARIES actionlib
CATKIN_DEPENDS actionlib_msgs message_runtime roscpp std_msgs
DEPENDS Boost
DEPENDS "Boost COMPONENTS thread"
)

add_library(actionlib src/connection_monitor.cpp src/goal_id_generator.cpp)
target_link_libraries(actionlib ${catkin_LIBRARIES} ${Boost_LIBRARIES})
target_link_libraries(actionlib ${catkin_LIBRARIES} Boost::thread)
add_dependencies(actionlib actionlib_gencpp)
target_include_directories(actionlib PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)

catkin_install_python(PROGRAMS tools/axclient.py tools/axserver.py tools/dynamic_action.py tools/library.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}Targets
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION})
install(EXPORT ${PROJECT_NAME}Targets
DESTINATION share/${PROJECT_NAME}/cmake
NAMESPACE ros::
FILE ${PROJECT_NAME}Targets.cmake)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h")

if(CATKIN_ENABLE_TESTING)
find_package(rostest)
find_package(rostest CONFIG REQUIRED)
add_subdirectory(test)
endif()
Loading

0 comments on commit 0dae227

Please sign in to comment.