Commit 5444a3ad authored by Tim Übelhör's avatar Tim Übelhör
Browse files

Merge branch 'master' of git.rwth-aachen.de:tim.uebelhoer/catkin-conan

parents f54edbd2 092dd113
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <https://unlicense.org>
# Introduction
This repository simply demonstrates that it is possible to use conan in a
catkin workspace.
# How it's done
[cmake-conan](https://github.com/conan-io/cmake-conan) is used to activate
conan during the cmake build process. It then installs the dependencies from
the conanfile.txt and uses the cmake_find_package generator to generate the
findXXX.cmake files. Those targets can be found via find_package() and later
be linked with the targets.
Building with conan requires to define the build type:
``` bash
catkin_make_isolated --cmake-args -DCMAKE_BUILD_TYPE=Release
```
or
``` bash
catkin build --cmake-args -DCMAKE_BUILD_TYPE=Release
```
Also note that the workspace will be a mixed catkin and cmake workspace. So only
`catkin_make_isolated` and `catkin build` work.
# Requirements
Setup the following conan repositories:
``` bash
conan remote add tuebel-gl3w https://api.bintray.com/conan/tuebel/gl3w
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment