I am integrating ROOT in my c++ project, following root.cern.ch/how/integrate-root … ject-cmake . I would like to add the TObjArray.h to my headers, and I was wondering if i have to add something to
#---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS)
find_package(ROOT REQUIRED COMPONENTS RIO Net)
i tried ObjArray, but running cmake says that it is not found. So I realized it is not needed to compile the program.
Anyway this opens for a more general question: is there somowhere a list of all the possible options to pass to the find_package command, that are specifically defined for ROOT? that would be lovely.
thanks but my code compiles, I was more asking if there is some documentation about the find_package(ROOT COMPONENTS) options. Also, are you sure link_directories is really needed? Mine works perfectly without it, just linking the libraries.