cmake-d/README.md
2013-10-16 18:27:19 +02:00

617 B

cmake-d

CMake for D2

Usage

  1. Download and extract https://github.com/dcarp/cmake-d/archive/master.zip to a local directory <cmake-d-dir>
  2. Create a D CMake Project: project(project-name D)
  3. 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>


Notes:

  • use absolute path for CMAKE_MODULE_PATH
  • Because internally cmake uses relative paths, on Windows, <cmake-d-dir> and cmake installation directory need to be on the same drive.