s/--init/--update/
This commit is contained in:
15
README.md
15
README.md
@ -1,23 +1,28 @@
|
||||
[](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
|
||||
|
Reference in New Issue
Block a user