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

None shared root libraries with CMake  

Forum: Installation and Configuration
Date: 04 Apr, 2013
From: Nuria Escobar <Nuria Escobar>

Hello,

firstly sorry if my massage is repeated. I have searched in Forum and I haven't found the solution.

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)/phantomEDistUnbinnedEntryDict.cc: $(INCLUDEDIR)/phantomEDistUnbinnedEntry.hh
        (cd $(SRCDIR); \
         rootcint -f phantomEDistUnbinnedEntryDict.cc \
                  -c ../$(INCLUDEDIR)/phantomEDistUnbinnedEntry.hh phantomEDistUnbinnedEntryLinkDef.h)
phantomEDistUnbinnedEntryDict.o: $(SRCDIR)/phantomEDistUnbinnedEntryDict.cc
        g++ -g -Wall -fPIC $(ROOTCPPFLAGS) -I$(INCLUDEDIR) -c -o $@ $<

libphantomEDistUnbinnedEntry.so: phantomEDistUnbinnedEntryDict.o
        g++ -g -Wall -fPIC -shared -o $@ $^

I have problem to include them in my CMakeLists.txt

I have found this post: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/analysis/410/3/1.html

but it does not work for me because the library used here is static.

Is there any advice how should I write my CMakeLists.txt in order to compile my simulation?

Thank you in advance,

Nuria

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

1 Note: Re: shared root libraries with CMake   (Ben Morgan - 19 Apr, 2013)
 Add Message Add Message
to: "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 ]