s/--init/--update/

This commit is contained in:
Radovan Bast
2015-05-23 13:50:50 +02:00
parent d0c5daf0ae
commit 7f197b6199
3 changed files with 27 additions and 20 deletions

View File

@ -1,23 +1,28 @@
[![Build Status](https://travis-ci.org/scisoft/autocmake.svg?branch=master)](https://travis-ci.org/scisoft/autocmake/builds)
# Autocmake
A CMake plugin composer.
## Projects using Autocmake
- [Numgrid](https://github.com/rbast/numgrid)
## Bootstrapping a new project
Bootstrap a Autocmake infrastructure out of "nothing":
Download the ``bootstrap.py`` and execute it to fetch other infrastructure files
which will be needed to build the project:
mkdir cmake # does not have to be called "cmake" - take the name you prefer
cd cmake
wget https://github.com/scisoft/autocmake/raw/master/bootstrap.py
python bootstrap.py --init
python bootstrap.py --update
This downloads and creates the following files:
This creates (or updates) the following files (an existing ``autocmake.cfg`` is
not overwritten by the script):
cmake/
├── bootstrap.py # no need to edit
@ -29,10 +34,11 @@ This downloads and creates the following files:
If you use version control, then now is a good moment to status/diff/add
the newly created files.
## Creating the CMake infrastructure
Then edit ``autocmake.cfg`` and run the ``bootstrap.py`` script which
creates ``CMakeLists.txt`` and ``setup.py`` in the path specified (here ".."):
creates ``CMakeLists.txt`` and ``setup.py`` in the build path:
python bootstrap.py ..
@ -55,6 +61,7 @@ the project:
cd build
make
## Customizing the CMake modules
The CMake modules can be customized directly inside ``modules/`` but this is