Fork me on GitHub

source: git/external/ExRootAnalysis/CMakeLists.txt@ 90132e0

Last change on this file since 90132e0 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
Line 
1include_directories(
2 ${CMAKE_SOURCE_DIR}/external
3 ${ROOT_INCLUDE_DIRS}
4)
5
6file(GLOB sources *.cc)
7file(GLOB headers *.h)
8
9list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ExRootAnalysisLinkDef.h)
10
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()
29
30add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
31
32# install headers
33install(FILES ${headers} DESTINATION include/ExRootAnalysis)
34
35# install pcms if they are created
36if (NOT ${ROOT_VERSION} VERSION_LESS "6.0.0")
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.