GTSAMCMakeTools

This is the collection of GTSAM CMake tools that may be useful in external projects. The way to use this collection is by first making a find_package call:

find_package(GTSAMCMakeTools)

which will add a directory containing the GTSAM CMake tools to the CMAKE_MODULE_PATH variable. After that, you may include the files you would like to use. These files and the functions they define are explained below.

GtsamBuildTypes

include(GtsamBuildTypes)

Including this file immediately sets up the following build types and a drop-down list in cmake-gui:

It also configures several minor details, as follows:

It defines the following functions:

GtsamTesting

include(GtsamTesting)

Defines two useful functions for creating CTest unit tests. Also immediately creates a check target that builds and runs all unit tests.

GtsamMatlabWrap

include(GtsamMatlabWrap)

Defines functions for generating MATLAB wrappers. Also immediately creates several CMake options for configuring the wrapper.

GtsamMakeConfigFile

include(GtsamMakeConfigFile)

Defines a function for generating a config file so your project may be found with the CMake find_package function. TODO: Write documentation.