CMake for D2
- Download and extract https://github.com/dcarp/cmake-d/archive/master.zip to a local directory <local-dir>
- Create a D CMake Project: project(project-name D)
- Run cmake as usual specifing the cmake-d path. To cache it, don't forget to specify the :PATH variable type.
cmake -DCMAKE_MODULE_PATH:PATH=<local-dir>/cmake-d <path-to-source>