CMakeLists.txt 764 Bytes
Newer Older
Sylvester Joosten's avatar
Sylvester Joosten committed
1
2
cmake_minimum_required(VERSION 3.2.0)

3
4
set(CMAKE_PREFIX_PATH $ENV{HOME}/lib CMAKE_PREFIX_PATH)
find_package(NPDet  REQUIRED)
5
6
7
#---------------------------------------------------------------
# to use ROOT targets, find_package ROOT must come before find_package Gaudi
# (for now) # see issue Gaudi#103
Whitney Armstrong's avatar
Whitney Armstrong committed
8
9
set(PODIO $ENV{PODIO})
set(CMAKE_MODULE_PATH CMAKE_MODULE_PATH PODIO)
Whitney Armstrong's avatar
Whitney Armstrong committed
10
find_package(podio 0.11.0 REQUIRED)
Whitney Armstrong's avatar
Whitney Armstrong committed
11
include_directories(${podio_INCLUDE_DIR})
12
find_package(ROOT COMPONENTS MathCore GenVector Geom REQUIRED)
Whitney Armstrong's avatar
Whitney Armstrong committed
13
find_package(DD4hep COMPONENTS DDG4 DDG4IO DDRec REQUIRED)
14
15
find_package(Geant4)

16

Sylvester Joosten's avatar
Sylvester Joosten committed
17
18
19
20
find_package(GaudiProject)

gaudi_project(Juggler v1r0
              USE Gaudi v33r1)
21
22
23

            install(FILES ${CMAKE_BINARY_DIR}/run 
              DESTINATION bin/)