Last change
on this file since 56fb0be was b5e2583, checked in by kreczko <lkreczko@…>, 6 years ago |
added examples/ExternalFastJet and examples/Pythia8 (conditional) to install target
|
-
Property mode
set to
100644
|
File size:
686 bytes
|
Line | |
---|
1 | include_directories(
|
---|
2 | ${CMAKE_SOURCE_DIR}
|
---|
3 | ${DelphesExternals_INCLUDE_DIR}
|
---|
4 | )
|
---|
5 |
|
---|
6 | file(GLOB executables RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
|
---|
7 | file(GLOB macros *.C *.tcl *.tfs)
|
---|
8 |
|
---|
9 | # build all executables and put them into bin/
|
---|
10 | foreach(sourcefile ${executables})
|
---|
11 | string(REPLACE ".cpp" "" name ${sourcefile})
|
---|
12 | add_executable(${name} ${sourcefile})
|
---|
13 | target_link_libraries(${name} Delphes)
|
---|
14 | install(TARGETS ${name} DESTINATION bin)
|
---|
15 | endforeach()
|
---|
16 |
|
---|
17 | # take all other relevant files and put them into examples/
|
---|
18 | install(FILES ${macros} DESTINATION examples)
|
---|
19 | install(DIRECTORY ExternalFastJet DESTINATION examples)
|
---|
20 | if(PYTHIA8_FOUND)
|
---|
21 | install(DIRECTORY Pythia8 DESTINATION examples)
|
---|
22 | endif()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.