Skip to content

Commit

Permalink
Hunterise
Browse files Browse the repository at this point in the history
  • Loading branch information
lsolanka authored and ruslo committed Aug 7, 2019
1 parent 6efe55e commit f739a7c
Show file tree
Hide file tree
Showing 3 changed files with 573 additions and 1 deletion.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 2.8.3)

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

project(angles)

hunter_add_package(catkin)

add_subdirectory(angles)
21 changes: 20 additions & 1 deletion angles/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,27 @@ cmake_minimum_required(VERSION 2.8)
project(angles)

find_package(catkin REQUIRED)

set(PROJECT_INSTALLSPACE_LIBRARIES ros::${PROJECT_NAME})
catkin_package(INCLUDE_DIRS include)

add_library(${PROJECT_NAME} INTERFACE)
target_include_directories(${PROJECT_NAME} INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)
install(TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}Targets
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_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")
Expand All @@ -13,4 +32,4 @@ include_directories(include)
if(CATKIN_ENABLE_TESTING)
add_subdirectory(test)
endif()
catkin_python_setup()
catkin_python_setup()
Loading

0 comments on commit f739a7c

Please sign in to comment.