I’m putting together a small but not tiny root based analysis using 6.14/00 on Mac OS.
It will probably have a few dozen classes so I’d like the source to live in a few sub modules
that get build into shared libraries with associated include files in the usual way.
I imagine this is a very common scenario in the root world.
I found https://root.cern.ch/how/integrate-root-my-project-cmake, which seems to indicate that
it might be possible to reuse the root cmake build system to accomplish this (“Define useful
ROOT functions and macros”), but provides no further help.
Is there a example or write-up documenting how to do this and which macros from the root build
system can be used and how. From the CMakeLists.txt files in the root source I gleaned potentially
useful macros like ROOT_GLOB_HEADERS, ROOT_GLOB_SOURCES, ROOT_OBJECT_LIBRARY
and ROOT_INSTALL_HEADERS. Can these be used? How to direct the output the toplevel include
and lib directories of my project?
Many thanks in advance,
_ROOT Version: 6.14/00
_Platform: Mac OS Sierra (10.12.6)
_Compiler: gcc version 7.3.0