cling/tools/demo
2017-03-20 15:44:07 +01:00
..
cling-demo.cpp Use static_cast; nicer print-out. 2017-03-20 09:44:04 +01:00
CMakeLists.txt Build cling-demo as part of cling. 2017-03-20 15:44:07 +01:00
README.md Formatting. 2017-03-19 23:14:05 +01:00

Example project using cling as library

This example project uses cling as an external library. It compiles code and calls it, moving values from the compiled part to the interpreted part and back.

It showcases how to use cling as a library, and shows how to set up a simple CMake configuration that uses cling.

How to build

After installing cling (say into /where/cling/is/installed), configure this project using CMake like this:

cmake -Dcling_DIR=/where/cling/is/installed/lib/cmake/cling  /path/to/cling/sources/tools/cling/tools/demo
make && ./cling-demo