Message: Re: shared root libraries with CMake Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: shared root libraries with CMake  

Forum: Installation and Configuration
Re: None shared root libraries with CMake (Nuria Escobar)
Date: 19 Apr, 2013
From: Ben Morgan <Ben Morgan>

Hi Nuria,

On Thu, 04 Apr 2013 15:57:14 GMT, Nuria Escobar wrote:
> I move now from Geant4.9.4 to Geant4.9.6. I have two shared root
> libraries that I included in my old GNUMakefile:
> $(SRCDIR)/ $(INCLUDEDIR)/phantomEDistUnbinnedEntry.hh
>         (cd $(SRCDIR); \
>          rootcint -f \
>                   -c ../$(INCLUDEDIR)/phantomEDistUnbinnedEntry.hh phantomEDistUnbinnedEntryLinkDef.h)
> phantomEDistUnbinnedEntryDict.o: $(SRCDIR)/
>         g++ -g -Wall -fPIC $(ROOTCPPFLAGS) -I$(INCLUDEDIR) -c -o $@ $<
> phantomEDistUnbinnedEntryDict.o
>         g++ -g -Wall -fPIC -shared -o $@ $^
> I have problem to include them in my CMakeLists.txt

I'd recommend checking out the example provided by ROOT themselves. The important points are the FindROOT.cmake file, and the use of find_package(ROOT) and root_generate_dictionary in the CMakeLists.txt.

In Geant4 9.6, we do supply an implementation of FindROOT.cmake for use in our examples and for testing, so you could also use this, but note that it may not be feature complete and is only provided for convenience rather than as a robust solution.



 Add Message Add Message
to: "Re: shared root libraries with 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 ]