Getting ready

Since we wish to show and discuss how to structure a non-trivial project, we need an example that is more than a "hello world" project. We will develop a relatively simple code that can compute and print elementary cellular automata:

Our code will be able to compute any of the 256 elementary cellular automata, for instance rule 90 (Wolfram code):

$ ./bin/automata 40 15 90length: 40number of steps: 15rule: 90                    *                   * *                  *   *                 * * * *                *       *               * *     * *              *   *   *   *             * * * * * * * *            *               *           * *             * *          *   *           *   *         * * * *         * * * *        *       *       *       *       * *     * *     * *     * *      *   *   *   *   *   *   *   *     * * * * * * * * * * * * * * * *

The structure of our ...

Get CMake Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.