Skip to content

Commit

Permalink
Merge pull request ruslo#1928 from kgeorgiev93/pr.angles
Browse files Browse the repository at this point in the history
Add 'angles' package
  • Loading branch information
ruslo authored Aug 8, 2019
2 parents 19be078 + bdfd531 commit 0413149
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ hunter_default_version(android_sdk_platform_packer VERSION 1.0.0)
hunter_default_version(android_sdk_platform_tools_packer VERSION 1.0.0)
hunter_default_version(android_sdk_tools_packer VERSION 1.0.3)
hunter_default_version(android_support_repository_packer VERSION 1.0.0)
hunter_default_version(angles VERSION 1.9.11-p0)
hunter_default_version(arabica VERSION 0.0.0-a202766-p0)
hunter_default_version(autobahn-cpp VERSION 0.2.0)
hunter_default_version(autoutils VERSION 0.3.0)
Expand Down
31 changes: 31 additions & 0 deletions cmake/projects/angles/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright (c) 2016-2019, Ruslan Baratov
# All rights reserved.

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_download)
include(hunter_pick_scheme)
include(hunter_cmake_args)

hunter_add_version(
PACKAGE_NAME
angles
VERSION
1.9.11-p0
URL
"https://github.com/hunter-packages/angles/archive/v1.9.11-p0.tar.gz"
SHA1
455a91947b1f81dba5769a6b6b59e00b2208119f
)

hunter_cmake_args(
angles
CMAKE_ARGS
CATKIN_ENABLE_TESTING:BOOL=OFF
)

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(angles)
hunter_download(PACKAGE_NAME angles)
21 changes: 21 additions & 0 deletions docs/packages/pkg/angles.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. spelling::

angles

.. index:: ROS ; angles

.. _pkg.angles:

angles
======

- `Official <https://github.com/ros/angles>`__
- `Hunterized <https://github.com/hunter-packages/angles>`__
- `Example <https://github.com/ruslo/hunter/blob/master/examples/angles/CMakeLists.txt>`__
- Added by `Krasimir Georgiev <https://github.com/kgeorgiev93>`__ (`pr-1928 <https://github.com/ruslo/hunter/pull/1928>`__)
- Contribution partially as part of work at `SeeByte Ltd. <http://www.seebyte.com>`__

.. literalinclude:: /../examples/angles/CMakeLists.txt
:language: cmake
:start-after: # DOCUMENTATION_START {
:end-before: # DOCUMENTATION_END }
20 changes: 20 additions & 0 deletions examples/angles/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (c) 2016-2017, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.2)

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")

project(download-angles)

# DOCUMENTATION_START {
hunter_add_package(angles)
find_package(catkin CONFIG REQUIRED COMPONENTS angles)

catkin_package()

add_executable(main main.cpp)
target_link_libraries(main ${catkin_LIBRARIES})
# DOCUMENTATION_END }
4 changes: 4 additions & 0 deletions examples/angles/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <angles/angles.h>

int main() {
}
11 changes: 11 additions & 0 deletions examples/angles/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<package format="2">
<name>download-angles</name>
<version>0.0.0</version>
<description>
This package provides foo capability.
</description>
<maintainer email="[email protected]">Krasimir Georgiev</maintainer>
<license>BSD</license>

<buildtool_depend>catkin</buildtool_depend>
</package>

0 comments on commit 0413149

Please sign in to comment.