tweedledum is a header-only C++-17 library. Just add the include directory of tweeldedum to your include directories, and you can integrate it into your source files using
tweedledum is in version Alpha. Hence, the software is still under active development and not feature complete, meaning the API is subject to big changes. This is released for developers or users who are comfortable living on the absolute bleeding edge.
We tested building tweedledum on Mac OS and Linux using:
If you experience that the system compiler does not suffice the requirements, you can manually pass a compiler to CMake using:
cmake -DCMAKE_CXX_COMPILER=/path/to/c++-compiler ..
Building the examples¶
The included CMake build script can be used to build the tweedledum library examples on a wide range of platforms. CMake is freely available for download from http://www.cmake.org/download/.
CMake works by generating native makefiles or project files that can be used in the compiler environment of your choice. The typical workflow starts with:
mkdir build # Create a directory to hold the build output. cd build
To build the examples set the
TWEEDLEDUM_EXAMPLES CMake variable to
cmake -DTWEEDLEDUM_EXAMPLES=TRUE <path/to/tweedledum>
<path/to/tweedledum> is a path to the
If you are on a *nix system, you should now see a Makefile in the current directory. Now you can build the library by running make.
*.cpp files in the
examples/ directory will be compiled to its own executable
which will have the same name. For example, the file
examples/hello_world.cpp will generate
Once the examples have been built you can invoke ./examples/<name> to run it:
Building the documentation¶
To build the documentation you need the following software installed on your system:
First generate makefiles or project files using CMake as described in the previous section.
Then compile the
doc target/project, for example:
This will generate the HTML documentation in