/Triangles

3D geometry library

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Triangles

3D geometry library.

GitHub repo size GitHub last commit GitHub lines

Building

At first you have to configure cmake. You are able to set any compiler which supports C++20 concepts, any build type, turn on/off documentation build or set generator:

$ cd /path/to/Triangles
$ mkdir build & cd build
$ cmake .. -DCMAKE_BUILD_TYPE=Release \
           -DCMAKE_CXX_COMPILER=clang++-10 \
           -DBUILD_DOC=OFF \
           -DBUILD_TESTS=ON

Then build project:

$ cmake --build . -j`nproc`

All the executables will be placed in /path/to/Triangles/build/bin.

Running tests

To configure project with tests use option BUILD_TESTS. To run tests you have to install llvm-10-tools and libgtest-dev packages and also python library named lit:

$ sudo apt-get install libgtest-dev
$ sudo apt-get install llvm-10-tools
$ pip3 install lit

Run all tests with command:

$ cd /path/to/Triangles/build
$ ctest -VV