Fork me on GitHub

source: git/CMakeLists.txt@ e0c1ff0

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

adapt CMake files to ROOT 6

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[7fe06d6]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
[be6c1c8]12if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
13 set(CMAKE_INSTALL_LIBDIR "lib")
14endif()
15
16function(DELPHES_GENERATE_DICTIONARY dictionary)
17 if(${ROOT_VERSION} LESS 6.0)
18 ROOT_GENERATE_DICTIONARY(${dictionary} ${ARGN})
19 else()
20 ROOT_GENERATE_DICTIONARY(${dictionary} MODULE ${dictionary} ${ARGN})
21 endif()
22endfunction()
23
[7fe06d6]24# Declare position of all other externals needed
25set(DelphesExternals_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/external)
26
27add_subdirectory(classes)
28add_subdirectory(converters)
29add_subdirectory(display)
30add_subdirectory(examples)
31add_subdirectory(external)
32add_subdirectory(modules)
33add_subdirectory(readers)
34
35add_library(Delphes SHARED
36 $<TARGET_OBJECTS:classes>
37 $<TARGET_OBJECTS:display>
38 $<TARGET_OBJECTS:modules>
39 $<TARGET_OBJECTS:ExRootAnalysis>
40 $<TARGET_OBJECTS:fastjet>
41 $<TARGET_OBJECTS:tcl>
42 $<TARGET_OBJECTS:Hector>
43)
44
45target_link_Libraries(Delphes ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
46
47install(TARGETS Delphes DESTINATION lib)
Note: See TracBrowser for help on using the repository browser.