1
0
mirror of synced 2024-06-08 21:57:56 +02:00
modern-cmake/examples/root-dict/README.md
Henry Fredrick Schreiner 8861642e5c Adding nice examples
2018-03-29 13:26:47 +02:00

726 B

Dictionary Example

This is an example of building a module that includes a dictionary in CMake.

examples/root-dict/CMakeLists.txt

import:'main', lang:'cmake'

Supporting files

This is just a simple-as-possible class definition, with one method:

examples/root-dict/DictExample.cxx

import, lang:'c_cpp'

examples/root-dict/DictExample.h

import, lang:'c_cpp'

We need a LinkDef.h, as well.

examples/root-dict/DictLinkDef.h

import, lang:'c_cpp'

Testing it

This is an example of a macro that tests the correct generation from the files listed above.

examples/root-dict/CheckLoad.C

import, lang:'c_cpp'