erleben / OpenTissue

OpenTissue is a collection of generic algorithms and data structures for rapid development of interactive modeling and simulation.
http://www.opentissue.org
95 stars 26 forks source link

Open tissue refactoring: build system #8

Closed ricortiz closed 4 years ago

ricortiz commented 4 years ago

This patch adress updates concerning the CMake build system generator with the main goal of appying modern CMake
There a plenty of changes but most of them are related to changes on CMake.

Another big change is dependency handling. All dependencies, with exception of GLUT and OpenGL can now be handled automatically by Conan.io on Linux, MacOS and Windows.

OpenTissue now have a dashboard with build/test/coverate reporting and a CI built/test/package pipeline:

Here are the steps to test it on Linux, the process is prety similar on Windows and MacOS.

  1. Install conan (use Python3): pip3 install conan
  2. Install dependencies: mkdir build && cd build && conan install <path-to-source> -s build_type=Debug -o *:shared=False
  3. Build cmake .. -DOPENTISSUE_ENABLE_UNIT_TESTS=ON -DBUILD_TYPE=Debug make && make test
  4. Commit build results to dashboard if you feel like. make Experimental