Message: Re: Analysis with ROOT and cmake Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Analysis with ROOT and cmake 

Forum: Analysis
Re: Question Analysis with ROOT and cmake (David Krapohl)
Date: 09 Jan, 2012
From: Matej Batic <Matej Batic>

I hope that you found the solution already. I have tried cmake myself and I believe you are missing the linking step:
target_link_libraries(CdTeDetector ${ROOT_LIBRARIES})

I would also change include_directories(/usr/include/root/) to

Both ROOT_LIBRARIES and ROOT_INCLUDE_DIR are set if the FindROOT macro finds package ROOT.

ROOT_LIBRARIES only holds a couple of most used root libs, so in case you need to add some specific libs, (e.g. Eve), use:


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Analysis with ROOT and cmake   (Yngve Inntjore Levinsen - 10 Jan, 2012)
 Add Message Add Message
to: "Re: Analysis with ROOT and cmake"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]