Last change
on this file since e5ea42e was 9259bfe, checked in by Pavel Demin <pavel-demin@…>, 8 years ago |
install headers required by libDelphes and libDelphesDisplay
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[7fe06d6] | 1 | include_directories(
|
---|
| 2 | ${CMAKE_SOURCE_DIR}
|
---|
| 3 | ${ROOT_INCLUDE_DIRS}
|
---|
| 4 | ${DelphesExternals_INCLUDE_DIR}
|
---|
| 5 | )
|
---|
| 6 |
|
---|
| 7 | file(GLOB sources *.cc)
|
---|
| 8 | file(GLOB headers *.h)
|
---|
[ce4b888] | 9 | list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/FastJetLinkDef.h)
|
---|
[7fe06d6] | 10 | list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ModulesLinkDef.h)
|
---|
| 11 | list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/Pythia8LinkDef.h)
|
---|
| 12 |
|
---|
[ce4b888] | 13 | DELPHES_GENERATE_DICTIONARY(FastJetDict ${headers} LINKDEF FastJetLinkDef.h)
|
---|
[be6c1c8] | 14 | DELPHES_GENERATE_DICTIONARY(ModulesDict ${headers} LINKDEF ModulesLinkDef.h)
|
---|
[7fe06d6] | 15 |
|
---|
| 16 | # TODO: implement switch to enable Pythia8 if present
|
---|
| 17 | list(REMOVE_ITEM sources ${CMAKE_CURRENT_SOURCE_DIR}/PileUpMergerPythia8.cc)
|
---|
| 18 |
|
---|
[ce4b888] | 19 | add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx)
|
---|
[255a666] | 20 |
|
---|
[9259bfe] | 21 | # install headers
|
---|
| 22 | install(FILES ${headers} DESTINATION include/modules)
|
---|
[0f5bf9d] | 23 |
|
---|
| 24 | # install pcms if they are created
|
---|
| 25 | if (${ROOT_VERSION} GREATER 6)
|
---|
| 26 | install(FILES
|
---|
| 27 | ${PROJECT_BINARY_DIR}/modules/libModulesDict_rdict.pcm
|
---|
| 28 | ${PROJECT_BINARY_DIR}/modules/libFastJetDict_rdict.pcm
|
---|
| 29 | DESTINATION lib)
|
---|
| 30 | endif()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.