We will use Mutate++ to play around.
git clone git@github.com:nlohmann/mutate_cpp.git && cd mutate_cpp
- Follow the installation steps, namely:
- Create and activate a new virtual environment for the python install, I use
pyenv
for that - In requirements.txt, replace all ">=" by "==", it will save some time adapting some scripts
pip install -r requirements.txt
python3 db_create.py
cd ..
- Get the example project:
git clone https://github.com/bast/cmake-example.git && cd cmake-example
- Install the necessary package to build it:
sudo apt install -y build-essential cmake
- In CMakeList.txt, line 5, remove Fortran from the supported languages (unless you have a compiler for it installed)
- Check that it builds:
mkdir build && cd build
cmake ..
make
- Run the tests:
ctest
, it should all pass
- In the mutate_cpp folder, start Mutate++:
python3 run.py
- Open the app in your browser with the URL http://127.0.0.1:5000.
- Follow the tutorial in mutate_cpp, just adapt the path to the source and build folders
- Try with another project that you can build locally