Build Companion

Dependencies

The following libs must be build to use Companion.

Build from Sources

Simply use CMake or CMake GUI to build Companion for a specific platform. Enable the Cuda flag to build Companion with CUDA support. By default the CUDA support will not be build.

git clone https://github.com/LibCompanion/Companion.git
cmake -DCompanion_USE_CUDA=ON/OFF
make
make install

Build Companion with Code Examples

Examples are included as a submodule or can be referenced via the CMake variable Companion_SAMPLE_MODULE. To build the samples you have to enable the Companion_BUILD_SAMPLES flag.

Build Samples from Submodule

git submodule update --init --recursive
cmake -DCompanion_BUILD_SAMPLES=ON
make

Build Samples from Project

git clone https://github.com/LibCompanion/CompanionSamples.git
cmake -DCompanion_BUILD_SAMPLES=ON -DCompanion_SAMPLE_MODULE=/path/to/CompanionSamples/
make