autocmake/doc/cmakelists.rst
Radovan Bast b9fa44260f more doc
2015-06-04 11:57:22 +02:00

29 lines
682 B
ReStructuredText

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