Fork me on GitHub

source: git/examples/CMakeLists.txt@ ca29ad7

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

add CMake files

  • Property mode set to 100644
File size: 555 bytes
RevLine 
[7fe06d6]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)
Note: See TracBrowser for help on using the repository browser.