Welcome to CMakeD
CMakeD is a CMake module for the D programming language.
Some projects may require a more flexible build system that allows for full configure support which is where CMake really shines. Some D applications may be linked to external libraries that need to be detected at compile time, and if the intent is to distribute open source apps, or deliver a source code package to clients, CMakeD may be exactly what is needed.
CMakeD provides the following features:
- Consistent build system on all platforms (Linux, Mac, Windows), compilers (gdc, dmd), and standard libraries (Phobos, Tango)
- Configure support for automatically detecting and linking system libraries and headers
- Platform checks
- Conditionally built source files, targets, and directories
- Automatic source and binary packaging
- Source code documentation building with both dmd and gdc, including automatic generation of Candydoc ddocs (currently gdc only)
- Does not require the user to have any special software installed (including CMakeD!) other than CMake (which is usually already installed on Linux systems)
- Pretty colored compile output, and percent completed display
How to Install?
Note that installation is not required to build CMakeD based projects. See the samples, as they show how a project can be created without needing CMakeD to be installed system wide. CMakeD does this by locally including the necessary files.
However, installation is still made available for people who desire this functionality.
- install MinGW
- install cmake
- install dmd
- cmake.exe -G "MinGW Makefiles" .
- path/to/MinGW/bin/mingw32-make install
CMakeD first looks for "gdc" then for "dmd". If one is installed it will use it, and if both are installed and you prefer "dmd" the DC environment variable can be used. Unix example:
Note the unix style slashes in the windows export!
- Selman Ulug <selman.ulug(at)gmail(dot)com> (http://sulug.blogspot.com)
- Tim Burrell <tim.burrell(at)gmail(dot)com>