Detailed CMake+test instructions

This commit is contained in:
Ashwin Vishnu 2021-02-05 13:46:21 +01:00
parent ae61462d41
commit a145698d43
1 changed files with 7 additions and 1 deletions

View File

@ -159,16 +159,22 @@ mamba install -c conda-forge cli11 cmake
```
For the C++ tests, you need Google Tests installed (e.g. `mamba install gtest`).
To build the program using CMake, the following line needs to be used:
To build the program using CMake, the following lines need to be used:
```bash
mkdir -p build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
-DPYTHON_EXECUTABLE=$CONDA_PREFIX/bin/python3 \
-DPYTHON_LIBRARIES=$CONDA_PREFIX/lib/libpython3.7m.so \
-DENABLE_TESTS=ON
cmake --build . -j
```
This would generate the test program `./test/test_mamba` under the `build`
directory which you can execute with `make test`.
### Support us
For questions, you can also join us on the [QuantStack Chat](https://gitter.im/QuantStack/Lobby) or on the [conda channel](https://gitter.im/conda/conda) (note that this project is not officially affiliated with `conda` or Anaconda Inc.).