Fork me on GitHub

source: git/examples/CMakeLists.txt@ 32b2ff1

Timing
Last change on this file since 32b2ff1 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 
1include_directories(
2 ${CMAKE_SOURCE_DIR}
3 ${DelphesExternals_INCLUDE_DIR}
4)
5
6file(GLOB executables RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
7file(GLOB macros *.C *.tcl *.tfs)
8
9# build all executables and put them into bin/
10foreach(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)
15endforeach()
16
17# take all other relevant files and put them into examples/
18install(FILES ${macros} DESTINATION examples)
19install(DIRECTORY ExternalFastJet DESTINATION examples)
20if(PYTHIA8_FOUND)
21 install(DIRECTORY Pythia8 DESTINATION examples)
22endif()
Note: See TracBrowser for help on using the repository browser.