Fork me on GitHub

source: git/external/ExRootAnalysis/CMakeLists.txt@ 66b8143

Last change on this file since 66b8143 was 66b8143, checked in by JP-Ellis <josh@…>, 8 years ago

Install all headers from display/

Also take the opportunity to install the other LinkDef headers, and the
installation of ExRootAnalysis header.

Signed-off-by: JP-Ellis <josh@…>

  • Property mode set to 100644
File size: 822 bytes
Line 
1include_directories(
2 ${CMAKE_SOURCE_DIR}/external
3 ${ROOT_INCLUDE_DIRS}
4)
5
6file(GLOB sources *.cc)
7file(GLOB headers *.h)
8list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ExRootAnalysisLinkDef.h)
9
10DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysisLinkDef.h)
11
12add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
13
14# install headers needed by public Delphes headers to include/
15install(FILES ${headers} DESTINATION include/ExRootAnalysis)
16
17# install all LinkDef files into the same folder to ease user environment
18install(FILES ExRootAnalysisLinkDef.h DESTINATION include)
19
20# install pcms if they are created
21if (${ROOT_VERSION} GREATER 6)
22 install(FILES
23 ${PROJECT_BINARY_DIR}/external/ExRootAnalysis/libExRootAnalysisDict_rdict.pcm
24 DESTINATION lib)
25endif()
Note: See TracBrowser for help on using the repository browser.