Fork me on GitHub

source: git/external/ExRootAnalysis/CMakeLists.txt@ 49dc761

Last change on this file since 49dc761 was 49dc761, checked in by Valentin Volkl <valentin.volkl@…>, 4 years ago

Fix relocation issues with header files in dictionary

  • Property mode set to 100644
File size: 996 bytes
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
11DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict
12 ExRootAnalysis/ExRootClassifier.h
13 ExRootAnalysis/ExRootConfReader.h
14 ExRootAnalysis/ExRootFilter.h
15 ExRootAnalysis/ExRootProgressBar.h
16 ExRootAnalysis/ExRootResult.h
17 ExRootAnalysis/ExRootTask.h
18 ExRootAnalysis/ExRootTreeBranch.h
19 ExRootAnalysis/ExRootTreeReader.h
20 ExRootAnalysis/ExRootTreeWriter.h
21 ExRootAnalysis/ExRootUtilities.h
22 LINKDEF ExRootAnalysisLinkDef.h)
23
24add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
25
26# install headers
27install(FILES ${headers} DESTINATION include/ExRootAnalysis)
28
29# install pcms if they are created
30if (NOT ${ROOT_VERSION} VERSION_LESS "6.0.0")
31 install(FILES
32 ${PROJECT_BINARY_DIR}/external/ExRootAnalysis/libExRootAnalysisDict_rdict.pcm
33 DESTINATION lib)
34endif()
Note: See TracBrowser for help on using the repository browser.