Fork me on GitHub

source: git/external/ExRootAnalysis/CMakeLists.txt@ a09b75f

Last change on this file since a09b75f 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
RevLine 
[7fe06d6]1include_directories(
2 ${CMAKE_SOURCE_DIR}/external
3 ${ROOT_INCLUDE_DIRS}
4)
5
6file(GLOB sources *.cc)
7file(GLOB headers *.h)
[49dc761]8
[7fe06d6]9list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ExRootAnalysisLinkDef.h)
10
[0feae05]11# the macro invocation for ROOT6 ensures that the headers are relocatable
12if (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)
25else()
26 # for ROOT5 the above fails, keep the following as workaround
27 DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysisLinkDef.h)
28endif()
[7fe06d6]29
30add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
31
[9259bfe]32# install headers
[8c872c8]33install(FILES ${headers} DESTINATION include/ExRootAnalysis)
[0f5bf9d]34
35# install pcms if they are created
[82cf9c4]36if (NOT ${ROOT_VERSION} VERSION_LESS "6.0.0")
[0f5bf9d]37 install(FILES
38 ${PROJECT_BINARY_DIR}/external/ExRootAnalysis/libExRootAnalysisDict_rdict.pcm
39 DESTINATION lib)
40endif()
Note: See TracBrowser for help on using the repository browser.