Fork me on GitHub

source: git/CMakeLists.txt@ 0c86fa5

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 0c86fa5 was 764f5364, checked in by Michele Selvaggi <michele.selvaggi@…>, 8 years ago

added cards to installation with cmake

  • 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
[341c4db]9find_package(ROOT COMPONENTS EG Eve Geom Gui GuiHtml GenVector Hist Physics Matrix Graf RIO Tree Gpad RGL MathCore)
[7fe06d6]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)
[764f5364]34add_subdirectory(cards)
[7fe06d6]35
36add_library(Delphes SHARED
37 $<TARGET_OBJECTS:classes>
38 $<TARGET_OBJECTS:display>
39 $<TARGET_OBJECTS:modules>
40 $<TARGET_OBJECTS:ExRootAnalysis>
41 $<TARGET_OBJECTS:fastjet>
42 $<TARGET_OBJECTS:tcl>
43 $<TARGET_OBJECTS:Hector>
[308ab1a]44 $<TARGET_OBJECTS:PUPPI>
[7fe06d6]45)
46
47target_link_Libraries(Delphes ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
48
49install(TARGETS Delphes DESTINATION lib)
Note: See TracBrowser for help on using the repository browser.