Fork me on GitHub

source: git/readers/CMakeLists.txt@ 9ca0c9c

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 9ca0c9c was 7fe06d6, checked in by Pavel Demin <pavel.demin@…>, 10 years ago

add CMake files

  • Property mode set to 100644
File size: 546 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 Pythia8 if present
9list(REMOVE_ITEM executables ${CMAKE_CURRENT_SOURCE_DIR}/DelphesPythia8.cpp)
10
11# build all executables and put them into bin/
12foreach(sourcefile ${executables})
13 string(REPLACE ".cpp" "" name ${sourcefile})
14 add_executable(${name} ${sourcefile})
15 target_link_libraries(${name} Delphes)
16 install(TARGETS ${name} DESTINATION bin)
17endforeach()
Note: See TracBrowser for help on using the repository browser.