I have installed root with cmake. When the installation was complete, I removed the source directory.
Now, I’m trying to integrate ROOT in my project with CMake. I’m following the steps in https://root.cern.ch/how/integrate-root-my-project-cmake
It does not work because I removed the ROOT sources. I get
-- Found ROOT libraries in /home/adrian/Soft/root-6.14.06/lib
-- ROOT libraries: /home/adrian/Soft/root-6.14.06/lib/libCore.so;/home/adrian/Soft/root-6.14.06/lib/libImt.so;/home/adrian/Soft/root-6.14.06/lib/libRIO.so;/home/adrian/Soft/root-6.14.06/lib/libNet.so;/home/adrian/Soft/root-6.14.06/lib/libHist.so;/home/adrian/Soft/root-6.14.06/lib/libGraf.so;
[...]
CMake Error at /home/adrian/Soft/root-6.14.06/ROOTUseFile.cmake:4 (include):
include could not find load file:
/home/adrian/Downloads/root-6.14.06/cmake/modules/RootNewMacros.cmake
Call Stack (most recent call first):
src/CMakeLists.txt:15 (include)
If I keep the root source files, I can build my project just fine.
How can I decouple my project from the original ROOT source files. It must be possible to refer to the ROOT install directory, right?
Thank you for your help.
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.14.06
Platform: ubuntu
Compiler: gcc 7.4.0