-
 

cmake_modules repository

Repository Summary

Checkout URI https://github.com/ros/cmake_modules.git
VCS Type git
VCS Version 0.5-devel
Last Updated 2020-10-16
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Packages

Name Version
cmake_modules 0.5.0

README

cmake_modules

A common repository for CMake Modules which are not distributed with CMake but are commonly used by ROS packages.

See the CONTRIBUTING.md file in this repository before submitting pull requests for new modules.

ROS Distros

This repository has branches for minor releases (0.2-devel, 0.3-devel, 0.4-devel, etc…) and they map to specific ROS distributions like so:

  • 0.2-devel:
    • ROS Groovy
  • 0.3-devel:
    • ROS Hydro
    • ROS Indigo
  • 0.4-devel:
    • ROS Jade
    • ROS Kinetic
    • ROS Lunar
    • ROS Melodic
  • 0.5-devel:
    • ROS Noetic

This mapping will be kept up-to-date in the README.md on the default branch.

In the future, new minor releases will increment by the number of ROS distros that are skipped. For example, if a custom branch is needed for ROS Lunar, then it will be 0.6-devel and not 0.5-devel, so that 0.5-devel maybe used by Kinetic in the future if necessary.

Provided Modules

  1. NumPy is the fundamental package for scientific computing with Python.
  2. TBB lets you easily write parallel C++ programs that take full advantage of multicore performance.
  3. TinyXML is a simple, small, C++ XML parser.
  4. TinyXML2 is a simple, small, C++ XML parser, continuation of TinyXML.
  5. Xenomai is a real-time development framework cooperating with the Linux kernel.
  6. GSL is a numerical library for C and C++ programmers.
  7. Gflags is a C++ library that implements commandline flags processing with the ability to define flags in the source file in which they are used.
  8. [Deprecated] Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.

Usage

To use the CMake modules provided by this catkin package, you must <build_depend> on it in your package.xml, like so:

<?xml version="1.0"?>
<package>
  <!-- ... -->
  <build_depend>cmake_modules</build_depend>
</package>

Then you must find_package it in your CMakeLists.txt along with your other catkin build dependencies:

find_package(catkin REQUIRED COMPONENTS ... cmake_modules ...)

OR by find_package‘ing it directly:

find_package(cmake_modules REQUIRED)

After the above find_package invocations, the modules provided by cmake_modules will be available in your CMAKE_MODULE_PATH to be found. For example you can find TinyXML by using the following:

find_package(TinyXML REQUIRED)

Lookup sheet

Eigen [Deprecated]
find_package(Eigen REQUIRED)

NumPY
find_package(NUMPY REQUIRED)

TBB
find_package(TBB REQUIRED)

TinyXML
find_package(TinyXML REQUIRED)

Xenomai
find_package(Xenomai REQUIRED)

FindGSL
find_package(GSL REQUIRED)

Gflags
find_package(Gflags REQUIRED)

CONTRIBUTING

Contributing a new CMake Module

First of all lets talk about the difference in a CMake module and a CMake config.

A CMake config file is named like <lowercase_package_name>-config.cmake or <PackageName>Config.cmake, and should normally be distributed by the CMake project which it applies to and should contain absolute locations to things which are known at build and install time. These files are discovered by searching the CMAKE_PREFIX_PATH.

A CMake module file is named like Find<PackageName>.cmake and are discovered by searching the CMAKE_MODULE_PATH. These files are distributed by CMake, or other packages like this one, and are used to locate software packages which were not built with CMake and which do not distribute CMake config files themselves. The prefix Find in the file names implies that you must “find” the software in question and often requires the use of the pkg-config module and/or the find_path and find_library CMake macros.

These are some similar repositories which contain several CMake modules, which CMake itself does not distribute:

  • https://github.com/rpavlik/cmake-modules
  • http://code.google.com/p/mgep/source/browse/branches/clientv2/CMakeModules

This package should exclusively contain CMake modules since config files should be distributed by the packages to which they apply.

You may want to contribute an existing CMake module you found on the internet, or you may want to write one from scratch. When writing one from scratch, this page can be useful:

http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules

CMake Module Style

When contributing a new CMake module for this package, please follow these guidelines:

  • The module should be placed in the cmake/Modules directory of this package
  • It should take the name Find<PackageName>.cmake
  • For example FindTinyXML.cmake
  • The module should at least provide these variables:
  • <PackageName>_FOUND
  • <PackageName>_INCLUDE_DIRS
  • <PackageName>_LIBRARIES
  • It may provide other variables but they must be documented at the top of the module file.
  • The module must provide documentation for each variable it sets and give an example of usage

You should also strive to keep the PackageName in Find<PackageName>.cmake’s case consistent in the CMake variables. For example, FindTinyXML.cmake should be found with a command like find_package(TinyXML REQUIRED) and should produce variables like TinyXML_FOUND.

A complete description of the recommended convention for writing CMake modules can be found here:

http://www.cmake.org/cmake/help/v3.0/manual/cmake-developer.7.html#find-modules

Long term contribution

This package serves as a repository for common modules which CMake does not currently distribute itself, but the ideal solution would be to get these modules contributed upstream with CMake so that in future versions of CMake, the modules will not have to be provided here, and will more widely benefit the CMake community.

So consider contributing your CMake modules upstream to CMake, details here:

http://www.cmake.org/cmake/project/getinvolved.html


Repository Summary

Checkout URI https://github.com/ros/cmake_modules.git
VCS Type git
VCS Version 0.4-devel
Last Updated 2019-03-19
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Packages

Name Version
cmake_modules 0.4.2

README

cmake_modules

A common repository for CMake Modules which are not distributed with CMake but are commonly used by ROS packages.

See the CONTRIBUTING.md file in this repository before submitting pull requests for new modules.

ROS Distros

This repository has branches for minor releases (0.2-devel, 0.3-devel, 0.4-devel, etc…) and they map to specific ROS distributions like so:

  • 0.2-devel:
    • ROS Groovy
  • 0.3-devel:
    • ROS Hydro
    • ROS Indigo
  • 0.4-devel:
    • ROS Jade
    • ROS Kinetic
    • ROS Lunar
    • ROS Melodic

This mapping will be kept up-to-date in the README.md on the default branch.

In the future, new minor releases will increment by the number of ROS distros that are skipped. For example, if a custom branch is needed for ROS Lunar, then it will be 0.6-devel and not 0.5-devel, so that 0.5-devel maybe used by Kinetic in the future if necessary.

Provided Modules

  1. NumPy is the fundamental package for scientific computing with Python.
  2. TBB lets you easily write parallel C++ programs that take full advantage of multicore performance.
  3. TinyXML is a simple, small, C++ XML parser.
  4. TinyXML2 is a simple, small, C++ XML parser, continuation of TinyXML.
  5. Xenomai is a real-time development framework cooperating with the Linux kernel.
  6. GSL is a numerical library for C and C++ programmers.
  7. Gflags is a C++ library that implements commandline flags processing with the ability to define flags in the source file in which they are used.
  8. [Deprecated] Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.

Usage

To use the CMake modules provided by this catkin package, you must <build_depend> on it in your package.xml, like so:

<?xml version="1.0"?>
<package>
  <!-- ... -->
  <build_depend>cmake_modules</build_depend>
</package>

Then you must find_package it in your CMakeLists.txt along with your other catkin build dependencies:

find_package(catkin REQUIRED COMPONENTS ... cmake_modules ...)

OR by find_package‘ing it directly:

find_package(cmake_modules REQUIRED)

After the above find_package invocations, the modules provided by cmake_modules will be available in your CMAKE_MODULE_PATH to be found. For example you can find TinyXML by using the following:

find_package(TinyXML REQUIRED)

Lookup sheet

Eigen [Deprecated]
find_package(Eigen REQUIRED)

NumPY
find_package(NUMPY REQUIRED)

TBB
find_package(TBB REQUIRED)

TinyXML
find_package(TinyXML REQUIRED)

Xenomai
find_package(Xenomai REQUIRED)

FindGSL
find_package(GSL REQUIRED)

Gflags
find_package(Gflags REQUIRED)

CONTRIBUTING

Contributing a new CMake Module

First of all lets talk about the difference in a CMake module and a CMake config.

A CMake config file is named like <lowercase_package_name>-config.cmake or <PackageName>Config.cmake, and should normally be distributed by the CMake project which it applies to and should contain absolute locations to things which are known at build and install time. These files are discovered by searching the CMAKE_PREFIX_PATH.

A CMake module file is named like Find<PackageName>.cmake and are discovered by searching the CMAKE_MODULE_PATH. These files are distributed by CMake, or other packages like this one, and are used to locate software packages which were not built with CMake and which do not distribute CMake config files themselves. The prefix Find in the file names implies that you must “find” the software in question and often requires the use of the pkg-config module and/or the find_path and find_library CMake macros.

These are some similar repositories which contain several CMake modules, which CMake itself does not distribute:

  • https://github.com/rpavlik/cmake-modules
  • http://code.google.com/p/mgep/source/browse/branches/clientv2/CMakeModules

This package should exclusively contain CMake modules since config files should be distributed by the packages to which they apply.

You may want to contribute an existing CMake module you found on the internet, or you may want to write one from scratch. When writing one from scratch, this page can be useful:

http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules

CMake Module Style

When contributing a new CMake module for this package, please follow these guidelines:

  • The module should be placed in the cmake/Modules directory of this package
  • It should take the name Find<PackageName>.cmake
  • For example FindTinyXML.cmake
  • The module should at least provide these variables:
  • <PackageName>_FOUND
  • <PackageName>_INCLUDE_DIRS
  • <PackageName>_LIBRARIES
  • It may provide other variables but they must be documented at the top of the module file.
  • The module must provide documentation for each variable it sets and give an example of usage

You should also strive to keep the PackageName in Find<PackageName>.cmake’s case consistent in the CMake variables. For example, FindTinyXML.cmake should be found with a command like find_package(TinyXML REQUIRED) and should produce variables like TinyXML_FOUND.

A complete description of the recommended convention for writing CMake modules can be found here:

http://www.cmake.org/cmake/help/v3.0/manual/cmake-developer.7.html#find-modules

Long term contribution

This package serves as a repository for common modules which CMake does not currently distribute itself, but the ideal solution would be to get these modules contributed upstream with CMake so that in future versions of CMake, the modules will not have to be provided here, and will more widely benefit the CMake community.

So consider contributing your CMake modules upstream to CMake, details here:

http://www.cmake.org/cmake/project/getinvolved.html


Repository Summary

Checkout URI https://github.com/ros/cmake_modules.git
VCS Type git
VCS Version 0.4-devel
Last Updated 2019-03-19
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Packages

Name Version
cmake_modules 0.4.2

README

cmake_modules

A common repository for CMake Modules which are not distributed with CMake but are commonly used by ROS packages.

See the CONTRIBUTING.md file in this repository before submitting pull requests for new modules.

ROS Distros

This repository has branches for minor releases (0.2-devel, 0.3-devel, 0.4-devel, etc…) and they map to specific ROS distributions like so:

  • 0.2-devel:
    • ROS Groovy
  • 0.3-devel:
    • ROS Hydro
    • ROS Indigo
  • 0.4-devel:
    • ROS Jade
    • ROS Kinetic
    • ROS Lunar
    • ROS Melodic

This mapping will be kept up-to-date in the README.md on the default branch.

In the future, new minor releases will increment by the number of ROS distros that are skipped. For example, if a custom branch is needed for ROS Lunar, then it will be 0.6-devel and not 0.5-devel, so that 0.5-devel maybe used by Kinetic in the future if necessary.

Provided Modules

  1. NumPy is the fundamental package for scientific computing with Python.
  2. TBB lets you easily write parallel C++ programs that take full advantage of multicore performance.
  3. TinyXML is a simple, small, C++ XML parser.
  4. TinyXML2 is a simple, small, C++ XML parser, continuation of TinyXML.
  5. Xenomai is a real-time development framework cooperating with the Linux kernel.
  6. GSL is a numerical library for C and C++ programmers.
  7. Gflags is a C++ library that implements commandline flags processing with the ability to define flags in the source file in which they are used.
  8. [Deprecated] Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.

Usage

To use the CMake modules provided by this catkin package, you must <build_depend> on it in your package.xml, like so:

<?xml version="1.0"?>
<package>
  <!-- ... -->
  <build_depend>cmake_modules</build_depend>
</package>

Then you must find_package it in your CMakeLists.txt along with your other catkin build dependencies:

find_package(catkin REQUIRED COMPONENTS ... cmake_modules ...)

OR by find_package‘ing it directly:

find_package(cmake_modules REQUIRED)

After the above find_package invocations, the modules provided by cmake_modules will be available in your CMAKE_MODULE_PATH to be found. For example you can find TinyXML by using the following:

find_package(TinyXML REQUIRED)

Lookup sheet

Eigen [Deprecated]
find_package(Eigen REQUIRED)

NumPY
find_package(NUMPY REQUIRED)

TBB
find_package(TBB REQUIRED)

TinyXML
find_package(TinyXML REQUIRED)

Xenomai
find_package(Xenomai REQUIRED)

FindGSL
find_package(GSL REQUIRED)

Gflags
find_package(Gflags REQUIRED)

CONTRIBUTING

Contributing a new CMake Module

First of all lets talk about the difference in a CMake module and a CMake config.

A CMake config file is named like <lowercase_package_name>-config.cmake or <PackageName>Config.cmake, and should normally be distributed by the CMake project which it applies to and should contain absolute locations to things which are known at build and install time. These files are discovered by searching the CMAKE_PREFIX_PATH.

A CMake module file is named like Find<PackageName>.cmake and are discovered by searching the CMAKE_MODULE_PATH. These files are distributed by CMake, or other packages like this one, and are used to locate software packages which were not built with CMake and which do not distribute CMake config files themselves. The prefix Find in the file names implies that you must “find” the software in question and often requires the use of the pkg-config module and/or the find_path and find_library CMake macros.

These are some similar repositories which contain several CMake modules, which CMake itself does not distribute:

  • https://github.com/rpavlik/cmake-modules
  • http://code.google.com/p/mgep/source/browse/branches/clientv2/CMakeModules

This package should exclusively contain CMake modules since config files should be distributed by the packages to which they apply.

You may want to contribute an existing CMake module you found on the internet, or you may want to write one from scratch. When writing one from scratch, this page can be useful:

http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules

CMake Module Style

When contributing a new CMake module for this package, please follow these guidelines:

  • The module should be placed in the cmake/Modules directory of this package
  • It should take the name Find<PackageName>.cmake
  • For example FindTinyXML.cmake
  • The module should at least provide these variables:
  • <PackageName>_FOUND
  • <PackageName>_INCLUDE_DIRS
  • <PackageName>_LIBRARIES
  • It may provide other variables but they must be documented at the top of the module file.
  • The module must provide documentation for each variable it sets and give an example of usage

You should also strive to keep the PackageName in Find<PackageName>.cmake’s case consistent in the CMake variables. For example, FindTinyXML.cmake should be found with a command like find_package(TinyXML REQUIRED) and should produce variables like TinyXML_FOUND.

A complete description of the recommended convention for writing CMake modules can be found here:

http://www.cmake.org/cmake/help/v3.0/manual/cmake-developer.7.html#find-modules

Long term contribution

This package serves as a repository for common modules which CMake does not currently distribute itself, but the ideal solution would be to get these modules contributed upstream with CMake so that in future versions of CMake, the modules will not have to be provided here, and will more widely benefit the CMake community.

So consider contributing your CMake modules upstream to CMake, details here:

http://www.cmake.org/cmake/project/getinvolved.html


Repository Summary

Checkout URI https://github.com/ros/cmake_modules.git
VCS Type git
VCS Version 0.3-devel
Last Updated 2014-12-23
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Packages

Name Version
cmake_modules 0.3.3

README

cmake_modules

A common repository for CMake Modules which are not distributed with CMake but are commonly used by ROS packages.

See the CONTRIBUTING.md file in this repository before submitting pull requests for new modules.

Provided Modules

  1. Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
  2. NumPy is the fundamental package for scientific computing with Python.
  3. TBB lets you easily write parallel C++ programs that take full advantage of multicore performance.
  4. TinyXML is a simple, small, C++ XML parser.
  5. Xenomai is a real-time development framework cooperating with the Linux kernel.
  6. [GSL] (http://www.gnu.org/software/gsl/) is a numerical library for C and C++ programmers.

Usage

To use the CMake modules provided by this catkin package, you must <build_depend> on it in your package.xml, like so:

<?xml version="1.0"?>
<package>
  <!-- ... -->
  <build_depend>cmake_modules</build_depend>
</package>

Then you must find_package it in your CMakeLists.txt along with your other catkin build dependencies:

find_package(catkin REQUIRED COMPONENTS ... cmake_modules ...)

OR by find_package‘ing it directly:

find_package(cmake_modules REQUIRED)

After the above find_package invocations, the modules provided by cmake_modules will be available in your CMAKE_MODULE_PATH to be found. For example you can find Eigen by using the following:

find_package(Eigen REQUIRED)

Lookup sheet

Eigen
find_package(Eigen REQUIRED)

NumPY
find_package(NUMPY REQUIRED)

TBB
find_package(TBB REQUIRED)

TinyXML
find_package(TinyXML REQUIRED)

Xenomai
find_package(Xenomai REQUIRED)

FindGSL

find_package(GSL REQUIRED)

CONTRIBUTING

Contributing a new CMake Module

First of all lets talk about the difference in a CMake module and a CMake config.

A CMake config file is named like <lowercase_package_name>-config.cmake or <PackageName>Config.cmake, and should normally be distributed by the CMake project which it applies to and should contain absolute locations to things which are known at build and install time. These files are discovered by searching the CMAKE_PREFIX_PATH.

A CMake module file is named like Find<PackageName>.cmake and are discovered by searching the CMAKE_MODULE_PATH. These files are distributed by CMake, or other packages like this one, and are used to locate software packages which were not built with CMake and which do not distribute CMake config files themselves. The prefix Find in the file names implies that you must “find” the software in question and often requires the use of the pkg-config module and/or the find_path and find_library CMake macros.

These are some similar repositories which contain several CMake modules, which CMake itself does not distribute:

  • https://github.com/rpavlik/cmake-modules
  • http://code.google.com/p/mgep/source/browse/branches/clientv2/CMakeModules

This package should exclusively contain CMake modules since config files should be distributed by the packages to which they apply.

You may want to contribute an existing CMake module you found on the internet, or you may want to write one from scratch. When writing one from scratch, this page can be useful:

http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules

CMake Module Style

When contributing a new CMake module for this package, please follow these guidelines:

  • The module should be placed in the cmake/Modules directory of this package
  • It should take the name Find<PackageName>.cmake
  • For example FindTinyXML.cmake
  • The module should at least provide these variables:
  • <PackageName>_FOUND
  • <PackageName>_INCLUDE_DIRS
  • <PackageName>_LIBRARIES
  • It may provide other variables but they must be documented at the top of the module file.
  • The module must provide documentation for each variable it sets and give an example of usage

You should also strive to keep the PackageName in Find<PackageName>.cmake’s case consistent in the CMake variables. For example, FindTinyXML.cmake should be found with a command like find_package(TinyXML REQUIRED) and should produce variables like TinyXML_FOUND.

A complete description of the recommended convention for writing CMake modules can be found here:

http://www.cmake.org/cmake/help/v3.0/manual/cmake-developer.7.html#find-modules

Long term contribution

This package serves as a repository for common modules which CMake does not currently distribute itself, but the ideal solution would be to get these modules contributed upstream with CMake so that in future versions of CMake, the modules will not have to be provided here, and will more widely benefit the CMake community.

So consider contributing your CMake modules upstream to CMake, details here:

http://www.cmake.org/cmake/project/getinvolved.html


Repository Summary

Checkout URI https://github.com/ros/cmake_modules.git
VCS Type git
VCS Version 0.3-devel
Last Updated 2014-12-23
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Packages

Name Version
cmake_modules 0.3.3

README

cmake_modules

A common repository for CMake Modules which are not distributed with CMake but are commonly used by ROS packages.

See the CONTRIBUTING.md file in this repository before submitting pull requests for new modules.

Provided Modules

  1. Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
  2. NumPy is the fundamental package for scientific computing with Python.
  3. TBB lets you easily write parallel C++ programs that take full advantage of multicore performance.
  4. TinyXML is a simple, small, C++ XML parser.
  5. Xenomai is a real-time development framework cooperating with the Linux kernel.
  6. [GSL] (http://www.gnu.org/software/gsl/) is a numerical library for C and C++ programmers.

Usage

To use the CMake modules provided by this catkin package, you must <build_depend> on it in your package.xml, like so:

<?xml version="1.0"?>
<package>
  <!-- ... -->
  <build_depend>cmake_modules</build_depend>
</package>

Then you must find_package it in your CMakeLists.txt along with your other catkin build dependencies:

find_package(catkin REQUIRED COMPONENTS ... cmake_modules ...)

OR by find_package‘ing it directly:

find_package(cmake_modules REQUIRED)

After the above find_package invocations, the modules provided by cmake_modules will be available in your CMAKE_MODULE_PATH to be found. For example you can find Eigen by using the following:

find_package(Eigen REQUIRED)

Lookup sheet

Eigen
find_package(Eigen REQUIRED)

NumPY
find_package(NUMPY REQUIRED)

TBB
find_package(TBB REQUIRED)

TinyXML
find_package(TinyXML REQUIRED)

Xenomai
find_package(Xenomai REQUIRED)

FindGSL

find_package(GSL REQUIRED)

CONTRIBUTING

Contributing a new CMake Module

First of all lets talk about the difference in a CMake module and a CMake config.

A CMake config file is named like <lowercase_package_name>-config.cmake or <PackageName>Config.cmake, and should normally be distributed by the CMake project which it applies to and should contain absolute locations to things which are known at build and install time. These files are discovered by searching the CMAKE_PREFIX_PATH.

A CMake module file is named like Find<PackageName>.cmake and are discovered by searching the CMAKE_MODULE_PATH. These files are distributed by CMake, or other packages like this one, and are used to locate software packages which were not built with CMake and which do not distribute CMake config files themselves. The prefix Find in the file names implies that you must “find” the software in question and often requires the use of the pkg-config module and/or the find_path and find_library CMake macros.

These are some similar repositories which contain several CMake modules, which CMake itself does not distribute:

  • https://github.com/rpavlik/cmake-modules
  • http://code.google.com/p/mgep/source/browse/branches/clientv2/CMakeModules

This package should exclusively contain CMake modules since config files should be distributed by the packages to which they apply.

You may want to contribute an existing CMake module you found on the internet, or you may want to write one from scratch. When writing one from scratch, this page can be useful:

http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules

CMake Module Style

When contributing a new CMake module for this package, please follow these guidelines:

  • The module should be placed in the cmake/Modules directory of this package
  • It should take the name Find<PackageName>.cmake
  • For example FindTinyXML.cmake
  • The module should at least provide these variables:
  • <PackageName>_FOUND
  • <PackageName>_INCLUDE_DIRS
  • <PackageName>_LIBRARIES
  • It may provide other variables but they must be documented at the top of the module file.
  • The module must provide documentation for each variable it sets and give an example of usage

You should also strive to keep the PackageName in Find<PackageName>.cmake’s case consistent in the CMake variables. For example, FindTinyXML.cmake should be found with a command like find_package(TinyXML REQUIRED) and should produce variables like TinyXML_FOUND.

A complete description of the recommended convention for writing CMake modules can be found here:

http://www.cmake.org/cmake/help/v3.0/manual/cmake-developer.7.html#find-modules

Long term contribution

This package serves as a repository for common modules which CMake does not currently distribute itself, but the ideal solution would be to get these modules contributed upstream with CMake so that in future versions of CMake, the modules will not have to be provided here, and will more widely benefit the CMake community.

So consider contributing your CMake modules upstream to CMake, details here:

http://www.cmake.org/cmake/project/getinvolved.html


Repository Summary

Checkout URI https://github.com/ros/cmake_modules.git
VCS Type git
VCS Version 0.4-devel
Last Updated 2019-03-19
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Packages

Name Version
cmake_modules 0.4.2

README

cmake_modules

A common repository for CMake Modules which are not distributed with CMake but are commonly used by ROS packages.

See the CONTRIBUTING.md file in this repository before submitting pull requests for new modules.

ROS Distros

This repository has branches for minor releases (0.2-devel, 0.3-devel, 0.4-devel, etc…) and they map to specific ROS distributions like so:

  • 0.2-devel:
    • ROS Groovy
  • 0.3-devel:
    • ROS Hydro
    • ROS Indigo
  • 0.4-devel:
    • ROS Jade
    • ROS Kinetic
    • ROS Lunar
    • ROS Melodic

This mapping will be kept up-to-date in the README.md on the default branch.

In the future, new minor releases will increment by the number of ROS distros that are skipped. For example, if a custom branch is needed for ROS Lunar, then it will be 0.6-devel and not 0.5-devel, so that 0.5-devel maybe used by Kinetic in the future if necessary.

Provided Modules

  1. NumPy is the fundamental package for scientific computing with Python.
  2. TBB lets you easily write parallel C++ programs that take full advantage of multicore performance.
  3. TinyXML is a simple, small, C++ XML parser.
  4. TinyXML2 is a simple, small, C++ XML parser, continuation of TinyXML.
  5. Xenomai is a real-time development framework cooperating with the Linux kernel.
  6. GSL is a numerical library for C and C++ programmers.
  7. Gflags is a C++ library that implements commandline flags processing with the ability to define flags in the source file in which they are used.
  8. [Deprecated] Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.

Usage

To use the CMake modules provided by this catkin package, you must <build_depend> on it in your package.xml, like so:

<?xml version="1.0"?>
<package>
  <!-- ... -->
  <build_depend>cmake_modules</build_depend>
</package>

Then you must find_package it in your CMakeLists.txt along with your other catkin build dependencies:

find_package(catkin REQUIRED COMPONENTS ... cmake_modules ...)

OR by find_package‘ing it directly:

find_package(cmake_modules REQUIRED)

After the above find_package invocations, the modules provided by cmake_modules will be available in your CMAKE_MODULE_PATH to be found. For example you can find TinyXML by using the following:

find_package(TinyXML REQUIRED)

Lookup sheet

Eigen [Deprecated]
find_package(Eigen REQUIRED)

NumPY
find_package(NUMPY REQUIRED)

TBB
find_package(TBB REQUIRED)

TinyXML
find_package(TinyXML REQUIRED)

Xenomai
find_package(Xenomai REQUIRED)

FindGSL
find_package(GSL REQUIRED)

Gflags
find_package(Gflags REQUIRED)

CONTRIBUTING

Contributing a new CMake Module

First of all lets talk about the difference in a CMake module and a CMake config.

A CMake config file is named like <lowercase_package_name>-config.cmake or <PackageName>Config.cmake, and should normally be distributed by the CMake project which it applies to and should contain absolute locations to things which are known at build and install time. These files are discovered by searching the CMAKE_PREFIX_PATH.

A CMake module file is named like Find<PackageName>.cmake and are discovered by searching the CMAKE_MODULE_PATH. These files are distributed by CMake, or other packages like this one, and are used to locate software packages which were not built with CMake and which do not distribute CMake config files themselves. The prefix Find in the file names implies that you must “find” the software in question and often requires the use of the pkg-config module and/or the find_path and find_library CMake macros.

These are some similar repositories which contain several CMake modules, which CMake itself does not distribute:

  • https://github.com/rpavlik/cmake-modules
  • http://code.google.com/p/mgep/source/browse/branches/clientv2/CMakeModules

This package should exclusively contain CMake modules since config files should be distributed by the packages to which they apply.

You may want to contribute an existing CMake module you found on the internet, or you may want to write one from scratch. When writing one from scratch, this page can be useful:

http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules

CMake Module Style

When contributing a new CMake module for this package, please follow these guidelines:

  • The module should be placed in the cmake/Modules directory of this package
  • It should take the name Find<PackageName>.cmake
  • For example FindTinyXML.cmake
  • The module should at least provide these variables:
  • <PackageName>_FOUND
  • <PackageName>_INCLUDE_DIRS
  • <PackageName>_LIBRARIES
  • It may provide other variables but they must be documented at the top of the module file.
  • The module must provide documentation for each variable it sets and give an example of usage

You should also strive to keep the PackageName in Find<PackageName>.cmake’s case consistent in the CMake variables. For example, FindTinyXML.cmake should be found with a command like find_package(TinyXML REQUIRED) and should produce variables like TinyXML_FOUND.

A complete description of the recommended convention for writing CMake modules can be found here:

http://www.cmake.org/cmake/help/v3.0/manual/cmake-developer.7.html#find-modules

Long term contribution

This package serves as a repository for common modules which CMake does not currently distribute itself, but the ideal solution would be to get these modules contributed upstream with CMake so that in future versions of CMake, the modules will not have to be provided here, and will more widely benefit the CMake community.

So consider contributing your CMake modules upstream to CMake, details here:

http://www.cmake.org/cmake/project/getinvolved.html


Repository Summary

Checkout URI https://github.com/ros/cmake_modules.git
VCS Type git
VCS Version 0.4-devel
Last Updated 2019-03-19
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Packages

Name Version
cmake_modules 0.4.2

README

cmake_modules

A common repository for CMake Modules which are not distributed with CMake but are commonly used by ROS packages.

See the CONTRIBUTING.md file in this repository before submitting pull requests for new modules.

ROS Distros

This repository has branches for minor releases (0.2-devel, 0.3-devel, 0.4-devel, etc…) and they map to specific ROS distributions like so:

  • 0.2-devel:
    • ROS Groovy
  • 0.3-devel:
    • ROS Hydro
    • ROS Indigo
  • 0.4-devel:
    • ROS Jade
    • ROS Kinetic
    • ROS Lunar
    • ROS Melodic

This mapping will be kept up-to-date in the README.md on the default branch.

In the future, new minor releases will increment by the number of ROS distros that are skipped. For example, if a custom branch is needed for ROS Lunar, then it will be 0.6-devel and not 0.5-devel, so that 0.5-devel maybe used by Kinetic in the future if necessary.

Provided Modules

  1. NumPy is the fundamental package for scientific computing with Python.
  2. TBB lets you easily write parallel C++ programs that take full advantage of multicore performance.
  3. TinyXML is a simple, small, C++ XML parser.
  4. TinyXML2 is a simple, small, C++ XML parser, continuation of TinyXML.
  5. Xenomai is a real-time development framework cooperating with the Linux kernel.
  6. GSL is a numerical library for C and C++ programmers.
  7. Gflags is a C++ library that implements commandline flags processing with the ability to define flags in the source file in which they are used.
  8. [Deprecated] Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.

Usage

To use the CMake modules provided by this catkin package, you must <build_depend> on it in your package.xml, like so:

<?xml version="1.0"?>
<package>
  <!-- ... -->
  <build_depend>cmake_modules</build_depend>
</package>

Then you must find_package it in your CMakeLists.txt along with your other catkin build dependencies:

find_package(catkin REQUIRED COMPONENTS ... cmake_modules ...)

OR by find_package‘ing it directly:

find_package(cmake_modules REQUIRED)

After the above find_package invocations, the modules provided by cmake_modules will be available in your CMAKE_MODULE_PATH to be found. For example you can find TinyXML by using the following:

find_package(TinyXML REQUIRED)

Lookup sheet

Eigen [Deprecated]
find_package(Eigen REQUIRED)

NumPY
find_package(NUMPY REQUIRED)

TBB
find_package(TBB REQUIRED)

TinyXML
find_package(TinyXML REQUIRED)

Xenomai
find_package(Xenomai REQUIRED)

FindGSL
find_package(GSL REQUIRED)

Gflags
find_package(Gflags REQUIRED)

CONTRIBUTING

Contributing a new CMake Module

First of all lets talk about the difference in a CMake module and a CMake config.

A CMake config file is named like <lowercase_package_name>-config.cmake or <PackageName>Config.cmake, and should normally be distributed by the CMake project which it applies to and should contain absolute locations to things which are known at build and install time. These files are discovered by searching the CMAKE_PREFIX_PATH.

A CMake module file is named like Find<PackageName>.cmake and are discovered by searching the CMAKE_MODULE_PATH. These files are distributed by CMake, or other packages like this one, and are used to locate software packages which were not built with CMake and which do not distribute CMake config files themselves. The prefix Find in the file names implies that you must “find” the software in question and often requires the use of the pkg-config module and/or the find_path and find_library CMake macros.

These are some similar repositories which contain several CMake modules, which CMake itself does not distribute:

  • https://github.com/rpavlik/cmake-modules
  • http://code.google.com/p/mgep/source/browse/branches/clientv2/CMakeModules

This package should exclusively contain CMake modules since config files should be distributed by the packages to which they apply.

You may want to contribute an existing CMake module you found on the internet, or you may want to write one from scratch. When writing one from scratch, this page can be useful:

http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules

CMake Module Style

When contributing a new CMake module for this package, please follow these guidelines:

  • The module should be placed in the cmake/Modules directory of this package
  • It should take the name Find<PackageName>.cmake
  • For example FindTinyXML.cmake
  • The module should at least provide these variables:
  • <PackageName>_FOUND
  • <PackageName>_INCLUDE_DIRS
  • <PackageName>_LIBRARIES
  • It may provide other variables but they must be documented at the top of the module file.
  • The module must provide documentation for each variable it sets and give an example of usage

You should also strive to keep the PackageName in Find<PackageName>.cmake’s case consistent in the CMake variables. For example, FindTinyXML.cmake should be found with a command like find_package(TinyXML REQUIRED) and should produce variables like TinyXML_FOUND.

A complete description of the recommended convention for writing CMake modules can be found here:

http://www.cmake.org/cmake/help/v3.0/manual/cmake-developer.7.html#find-modules

Long term contribution

This package serves as a repository for common modules which CMake does not currently distribute itself, but the ideal solution would be to get these modules contributed upstream with CMake so that in future versions of CMake, the modules will not have to be provided here, and will more widely benefit the CMake community.

So consider contributing your CMake modules upstream to CMake, details here:

http://www.cmake.org/cmake/project/getinvolved.html