Fork me on GitHub

source: git/readers/CMakeLists.txt@ 9189af2

Last change on this file since 9189af2 was c473838, checked in by Pavel Demin <pavel-demin@…>, 6 years ago

add REMOVE_ITEM executables DelphesProIO.cpp to readers/CMakeLists.txt

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