Fork me on GitHub

source: git/CMakeLists.txt@ 9259bfe

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 9259bfe was 102596a, checked in by Pavel Demin <pavel-demin@…>, 8 years ago

add DelphesDisplay target to CMakeLists.txt

  • Property mode set to 100644
File size: 1.6 KB
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 Geom Gui GuiHtml GenVector Hist Physics Matrix Graf RIO Tree Gpad RGL MathCore)
10include(${ROOT_USE_FILE})
11
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
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)
34add_subdirectory(cards)
35
36add_library(Delphes SHARED
37 $<TARGET_OBJECTS:classes>
38 $<TARGET_OBJECTS:modules>
39 $<TARGET_OBJECTS:ExRootAnalysis>
40 $<TARGET_OBJECTS:fastjet>
41 $<TARGET_OBJECTS:tcl>
42 $<TARGET_OBJECTS:Hector>
43 $<TARGET_OBJECTS:PUPPI>
44)
45
46add_library(DelphesDisplay SHARED
47 $<TARGET_OBJECTS:classes>
48 $<TARGET_OBJECTS:display>
49 $<TARGET_OBJECTS:modules>
50 $<TARGET_OBJECTS:ExRootAnalysis>
51 $<TARGET_OBJECTS:fastjet>
52 $<TARGET_OBJECTS:tcl>
53 $<TARGET_OBJECTS:Hector>
54 $<TARGET_OBJECTS:PUPPI>
55)
56
57target_link_Libraries(Delphes ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
58target_link_Libraries(DelphesDisplay ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
59
60install(TARGETS Delphes DelphesDisplay DESTINATION lib)
Note: See TracBrowser for help on using the repository browser.