Last change
on this file since 224c929 was 0feae05, checked in by Valentin Volkl <valentin.volkl@…>, 4 years ago |
relocatable headers for dictionaries: workaround for ROOT 5
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[7fe06d6] | 1 | include_directories(
|
---|
| 2 | ${CMAKE_SOURCE_DIR}/external
|
---|
| 3 | ${ROOT_INCLUDE_DIRS}
|
---|
| 4 | )
|
---|
| 5 |
|
---|
| 6 | file(GLOB sources *.cc)
|
---|
| 7 | file(GLOB headers *.h)
|
---|
[49dc761] | 8 |
|
---|
[7fe06d6] | 9 | list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ExRootAnalysisLinkDef.h)
|
---|
| 10 |
|
---|
[0feae05] | 11 | # the macro invocation for ROOT6 ensures that the headers are relocatable
|
---|
| 12 | if (NOT ${ROOT_VERSION} VERSION_LESS "6.0.0")
|
---|
| 13 | DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict
|
---|
| 14 | ExRootAnalysis/ExRootClassifier.h
|
---|
| 15 | ExRootAnalysis/ExRootConfReader.h
|
---|
| 16 | ExRootAnalysis/ExRootFilter.h
|
---|
| 17 | ExRootAnalysis/ExRootProgressBar.h
|
---|
| 18 | ExRootAnalysis/ExRootResult.h
|
---|
| 19 | ExRootAnalysis/ExRootTask.h
|
---|
| 20 | ExRootAnalysis/ExRootTreeBranch.h
|
---|
| 21 | ExRootAnalysis/ExRootTreeReader.h
|
---|
| 22 | ExRootAnalysis/ExRootTreeWriter.h
|
---|
| 23 | ExRootAnalysis/ExRootUtilities.h
|
---|
| 24 | LINKDEF ExRootAnalysisLinkDef.h)
|
---|
| 25 | else()
|
---|
| 26 | # for ROOT5 the above fails, keep the following as workaround
|
---|
| 27 | DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysisLinkDef.h)
|
---|
| 28 | endif()
|
---|
[7fe06d6] | 29 |
|
---|
| 30 | add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
|
---|
| 31 |
|
---|
[9259bfe] | 32 | # install headers
|
---|
[8c872c8] | 33 | install(FILES ${headers} DESTINATION include/ExRootAnalysis)
|
---|
[0f5bf9d] | 34 |
|
---|
| 35 | # install pcms if they are created
|
---|
[82cf9c4] | 36 | if (NOT ${ROOT_VERSION} VERSION_LESS "6.0.0")
|
---|
[0f5bf9d] | 37 | install(FILES
|
---|
| 38 | ${PROJECT_BINARY_DIR}/external/ExRootAnalysis/libExRootAnalysisDict_rdict.pcm
|
---|
| 39 | DESTINATION lib)
|
---|
| 40 | endif()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.