Skip to content

Cinder CMake Documentation

Richard Eakin edited this page Jan 4, 2017 · 17 revisions

#Overview

This document describes how you can build libcinder and your application using cmake. This is our officially supported way to build system on most Posix platforms, while in general you can use cinder's cmake system on any platform. See the section on platform-specific notes for details.

General structure

Building libcinder with CMake

The process for building libcinder from the command line is similar to most other cmake projects you may have used, for example you can do the following from within the main cinder repo path:

mkdir build
cd build
cmake ..
make -j4

TODO NEXT: explain where the binary will end up

Command-line Defines

Building your application with CMake

Using ci_make_app() utility function

CinderBlocks and CMake

Using CLion to build libcinder and your application

Platform Specific Notes