Fork me on GitHub

source: git/readers/CMakeLists.txt@ 2c838c0

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 2c838c0 was 3283d6e, checked in by William Fawcett <william.fawcett@…>, 7 years ago

minor modification

  • Property mode set to 100644
File size: 665 bytes
Line 
1include_directories(
2 ${CMAKE_SOURCE_DIR}
3 ${DelphesExternals_INCLUDE_DIR}
4)
5
6file(GLOB executables RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
7
8# TODO: implement switch to enable CMSSW, ProMC and Pythia8 if present
9list(REMOVE_ITEM executables DelphesCMSFWLite.cpp)
10list(REMOVE_ITEM executables DelphesProMC.cpp)
11if(NOT PYTHIA8_FOUND)
12 list(REMOVE_ITEM executables DelphesPythia8.cpp)
13endif()
14
15# build all executables and put them into bin/
16foreach(sourcefile ${executables})
17 string(REPLACE ".cpp" "" name ${sourcefile})
18 add_executable(${name} ${sourcefile})
19 target_link_libraries(${name} Delphes)
20 install(TARGETS ${name} DESTINATION bin)
21endforeach()
Note: See TracBrowser for help on using the repository browser.