How do I import root classes when using cmake?

See e.g. Standalone C program runs without error but doesn't display histogram