cmake/cpack root dictionary issue fixed.

In order that package assembly works, the code needs to be relocatble
and any hints linking it to the original source need to be absent.
The changes here do exactely this. For rootcling the '-inlineInputHeader'
option is needed, otherwise the dictionary wants to load the header
file from the source destination which of course will fail when installing
the package on a machine without the source.
This commit is contained in:
2019-02-01 16:05:24 +01:00
parent faffd5bcd6
commit 3cb950277f
14 changed files with 98 additions and 26 deletions

View File

@@ -1,12 +1,21 @@
# -TLemRunHeader library ------------------------------------------------------
#--- generate necessary dictionaries ------------------------------------------
set(TLEMRUNHEADER_INC ${CMAKE_SOURCE_DIR}/src/external/TLemRunHeader)
set(PREFIX_INC ${CMAKE_INSTALL_PREFIX}/include)
root_generate_dictionary(
TLemRunHeaderDict TLemRunHeader.h LINKDEF TLemRunHeaderLinkDef.h
TLemRunHeaderDict
-I${TLEMRUNHEADER_INC} -I${PREFIX_INC} TLemRunHeader.h
LINKDEF TLemRunHeaderLinkDef.h
OPTIONS -inlineInputHeader
MODULE TLemRunHeader
)
root_generate_dictionary(
TLemStatsDict TLemStats.h LINKDEF TLemStatsLinkDef.h
TLemStatsDict
-I${TLEMRUNHEADER_INC} -I${PREFIX_INC} TLemStats.h
LINKDEF TLemStatsLinkDef.h
OPTIONS -inlineInputHeader
MODULE TLemStats
)