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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.