cling/tools/demo/README.md

19 lines
571 B
Markdown
Raw Normal View History

2017-03-20 01:02:22 +03: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.
2017-03-20 01:02:22 +03:00
### How to build
After installing cling (say into /where/cling/is/installed), configure this
project using CMake like this:
2017-03-20 01:02:22 +03:00
```bash
2017-03-22 13:17:10 +03:00
cmake -Dcling_DIR=/cling-install-dir/lib/cmake/cling /cling-source-dir/tools/cling/tools/demo
2017-03-20 01:02:22 +03:00
make && ./cling-demo
```