Fork me on GitHub

source: git/classes/CMakeLists.txt@ e83faed

Last change on this file since e83faed 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: 918 bytes
Line 
1include_directories(
2 ${CMAKE_SOURCE_DIR}
3 ${ROOT_INCLUDE_DIRS}
4 ${DelphesExternals_INCLUDE_DIR}
5)
6
7file(GLOB sources *.cc)
8file(GLOB headers *.h)
9list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ClassesLinkDef.h)
10
11DELPHES_GENERATE_DICTIONARY(ClassesDict
12 ${CMAKE_CURRENT_SOURCE_DIR}/DelphesModule.h
13 ${CMAKE_CURRENT_SOURCE_DIR}/DelphesFactory.h
14 ${CMAKE_CURRENT_SOURCE_DIR}/SortableObject.h
15 ${CMAKE_CURRENT_SOURCE_DIR}/DelphesClasses.h
16 LINKDEF ClassesLinkDef.h
17)
18
19add_library(classes OBJECT ${sources} ClassesDict.cxx)
20
21# install public headers
22install(FILES ${headers} DESTINATION include/classes)
23
24# install all LinkDef files into the same folder to ease user environment
25install(FILES ClassesLinkDef.h DESTINATION include)
26
27# install pcms if they are created
28if (${ROOT_VERSION} GREATER 6)
29 install(FILES
30 ${PROJECT_BINARY_DIR}/classes/libClassesDict_rdict.pcm
31 DESTINATION lib)
32endif()
Note: See TracBrowser for help on using the repository browser.