cling/tools/demo
Bertrand Bellenot 6a7fc6bdc8 change compiler flags (#9083)
* [cling][windows] change compiler flags

 - Set the `-std:c++14` / `-std:c++17` flag depending on the version of Visual Studio (only if building outside ROOT)
 - Split the one line exports in three lines to fix a potential issue with Ninja on Windows (missing a white space between each `/EXPORT:` specifier)

* Add a forgotten `endif()`
2021-10-07 16:59:05 +02:00
..
cling-demo.cpp Several fixes for Windows 2018-03-22 13:44:16 +01:00
CMakeLists.txt change compiler flags (#9083) 2021-10-07 16:59:05 +02:00
README.md Shorten the readme path a bit. 2017-03-22 11:20:50 +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=/cling-install-dir/lib/cmake/cling /cling-source-dir/tools/cling/tools/demo
make && ./cling-demo