Fork me on GitHub

source: git/examples/CMakeLists.txt@ e70228d

Timing
Last change on this file since e70228d 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
RevLine 
[7fe06d6]1include_directories(
2 ${CMAKE_SOURCE_DIR}
[b5e2583]3 ${DelphesExternals_INCLUDE_DIR}
[7fe06d6]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)
[b5e2583]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.