Fork me on GitHub

source: git/CMakeLists.txt@ 7fe06d6

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

add CMake files

  • Property mode set to 100644
File size: 962 bytes
Line 
1cmake_minimum_required(VERSION 2.8)
2
3project(Delphes)
4
5set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -DDROP_CGAL")
6set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
7
8# Declare ROOT dependency
9find_package(ROOT COMPONENTS EG Eve GenVector Hist Physics Matrix Graf RIO Tree Gpad RGL MathCore)
10include(${ROOT_USE_FILE})
11
12# Declare position of all other externals needed
13set(DelphesExternals_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/external)
14
15add_subdirectory(classes)
16add_subdirectory(converters)
17add_subdirectory(display)
18add_subdirectory(examples)
19add_subdirectory(external)
20add_subdirectory(modules)
21add_subdirectory(readers)
22
23add_library(Delphes SHARED
24 $<TARGET_OBJECTS:classes>
25 $<TARGET_OBJECTS:display>
26 $<TARGET_OBJECTS:modules>
27 $<TARGET_OBJECTS:ExRootAnalysis>
28 $<TARGET_OBJECTS:fastjet>
29 $<TARGET_OBJECTS:tcl>
30 $<TARGET_OBJECTS:Hector>
31)
32
33target_link_Libraries(Delphes ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
34
35install(TARGETS Delphes DESTINATION lib)
Note: See TracBrowser for help on using the repository browser.