This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Catkin Simple
Simon Lynen edited this page Mar 13, 2014
·
9 revisions
Catkin simple is a set of macros that can be used in normal catkin packages. The main idea is to simplify the CMakeLists of catkin packages in several ways:
- Dependencies are just listed once as
build-depend
in thepackage.xml
, not also asrun-depend
etc. - Dependencies do not need to be listed again in the CMakeLists.txt
- Explicit linking of dependencies is not needed anymore (e.g. no
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES})
needed) - Explicit inclusion of catkin include not needed anymore (e.g. no
include_directories(${catkin_INCLUDES})
needed) - Export and installation commands are both one-liners.
A very simple example project can be found here: https://github.com/simonlynen/catkin_and_catkin_simple
A description of catkin simple can be found here: https://github.com/catkin/catkin_simple/blob/master/README.md
We refer to your catkin_workspace as CATKIN_WS
, which could e.g. be located under ~/catkin_ws
:
cd $CATKIN_WS/src
git clone git@github.com:catkin/catkin_simple.git
cd $CATKIN_WS
catkin_make
Now you can use catkin_simple as shown in the documentation and example section above.