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)
Re: None Re: Analysis with ROOT and cmake (Matej Batic)
Date: 10 Jan, 2012
From: Yngve Inntjore Levinsen <Yngve Inntjore Levinsen>

Mandag 9. januar 2012 06.50.51 skrev Matej Batic:
> 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: 
> set(ROOT_LIBRARIES ${ROOT_LIBRARIES} -lEve)

Dear Matej and David,

Just wanted to mention that the "more cmakely" way to do that would be 
instead:
target_link_libraries(CdTeDetector ${ROOT_LIBRARIES} Eve)
or the way you suggested but drop the "-l" part. It should be a list of the 
library core names, and then cmake figures out the rest.

Cheers,
Yngve

 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 ]