Patched clone of https://github.com/dcarp/cmake-d
cmake-d | ||
tests | ||
.gitignore | ||
LICENSE | ||
README.md |
cmake-d
CMake for D2
Usage
- Download and extract https://github.com/dcarp/cmake-d/archive/master.zip to a local directory <cmake-d-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=<cmake-d-dir>/cmake-d <path-to-source>
Note:
- use absolute path for CMAKE_MODULE_PATH
- Because cmake internally uses relative paths, on Windows, <cmake-d-dir> and cmake installation need to be installed on the same drive.