move doc to sphinx

This commit is contained in:
Radovan Bast
2015-06-01 16:16:35 +02:00
parent bc77fd8963
commit 1563ce13e3
5 changed files with 72 additions and 64 deletions

28
doc/cmakelists.rst Normal file
View File

@ -0,0 +1,28 @@
Generating the CMake infrastructure
===================================
Edit ``autocmake.cfg`` and run the ``bootstrap.py`` script which
creates ``CMakeLists.txt`` and ``setup.py`` in the build path::
python bootstrap.py ..
The script also copies or downloads CMake modules specified in ``autocmake.cfg`` to a directory
called ``modules/``::
cmake/
├── bootstrap.py
├── autocmake.cfg
└── lib/
├── config.py
└── docopt.py
└── modules/ # CMakeLists.txt includes CMake modules from this directory
Now you have ``CMakeLists.txt`` and ``setup.py`` in the project root and you can build
the project::
cd ..
python setup.py [-h]
cd build
make