JeffersonLab / hcana

Hall C++ Analyzer
7 stars 118 forks source link

Add CMake support for ROOT 5 and building hcanaConfig.cmake #379

Closed hansenjo closed 6 years ago

hansenjo commented 6 years ago

ROOT dictionary generation now also works with ROOT 5 (tested version 5.34/36 on ifarm).

Further, a hcanaConfig.cmake file is generated that can be used for quick and convenient building of user libraries. See the Podd SDK subdirectory for an example.

In addition, this pull request adds CMake support for building hcana against an existing installation of Podd (which also must have been built with CMake). To build in this mode, turn the option HCANA_BUILTIN_PODD off, like so

cmake -DHCANA_BUILTIN_PODD=OFF <other options> <srcdir>

The BUILTIN option is ON by default, enabling the Podd submodule, as before.

Requires Podd at commit JeffersonLab/analyzer@34dd368

sawjlab commented 6 years ago

Collapsed into one commit (kept all the comments) and merged onto develop. Pointed to the latest version of podd.