Skip to content

cherenkov-plenoscope/merlict_development_kit

Repository files navigation

merlict-development-kit Build Status codecov

License: GPL v3

scientific photon propagation and ray tracing in complex sceneries img

In this development-kit, all the sub-projects of the merlict-raytracer are build and tested together.

dependencies

  • git
  • g++ >= 6
  • cmake
  • libopencv-dev >= 2.4.8

make

git clone https://github.com/cherenkov-plenoscope/merlict_development_kit.git
mkdir build

The /build directory is best located side by side to the /merlict directory.

cd build
cmake ..
make

run

merlict has several executeables. To interacively explore a scenery use merlict-show.

cd ../merlict_viewer/apps/examples
../../../build/merlict-show --scenery fact.json

test

Run the unit tests in the merlict_development_kit directory to ensure your build is fine.

cd ..
./build/merlict-test

For Developers playing around with the single header + single source version.

At the moment we are trying to improve the build system, trying to make merlict a header only library.

At the moment there is a tool called amalgamate.py which can convert the current merlict sources into one header and one cpp file. It can be used like:

cd <merlict-development-kit folder>
./amalgamate.py

It creates these 2 files merlict.h and merlict.cpp and in addition it creates a test file merlict_test.cpp, which can be used to test the project.

You can build it like

g++ merlict_test.cpp merlict.cpp -o merlict_test
./merlict_test

style