Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/Tests/DownstreamProject/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.11)
0002 
0003 project(ActsDownstreamProject)
0004 
0005 # find all optional components that are build
0006 find_package(
0007     Acts
0008     CONFIG
0009     REQUIRED
0010     COMPONENTS Core Fatras PluginJson PluginLegacy PluginTGeo PluginCovfie
0011 )
0012 
0013 # place artifacts in GNU-like paths, e.g. binaries in `<build>/bin`
0014 include(GNUInstallDirs)
0015 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
0016     "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}"
0017 )
0018 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY
0019     "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}"
0020 )
0021 
0022 # link with all optional components even when they are not really used
0023 # to check e.g. for possible linker issues
0024 add_executable(ShowActsVersion ShowActsVersion.cpp)
0025 target_link_libraries(
0026     ShowActsVersion
0027     PRIVATE
0028         ActsCore
0029         ActsFatras
0030         ActsPluginJson
0031         ActsPluginLegacy
0032         ActsPluginTGeo
0033         ActsPluginCovfie
0034 )
0035 
0036 option(DD4HEP "Build with DD4hep" ON)
0037 if(DD4HEP)
0038     message(STATUS "Adding DD4hep plugin")
0039     find_package(Acts CONFIG REQUIRED COMPONENTS PluginDD4hep)
0040     target_link_libraries(ShowActsVersion PRIVATE ActsPluginDD4hep)
0041 endif()
0042 
0043 option(PODIO "Build with podio" ON)
0044 if(PODIO)
0045     message(STATUS "Adding podio plugin")
0046     find_package(Acts CONFIG REQUIRED COMPONENTS PluginPodio)
0047     target_link_libraries(ShowActsVersion PRIVATE ActsPluginPodio)
0048 endif()
0049 
0050 option(EDM4HEP "Build with EDM4hep" ON)
0051 if(EDM4HEP)
0052     message(STATUS "Adding EDM4hep plugin")
0053     find_package(Acts CONFIG REQUIRED COMPONENTS PluginEDM4hep)
0054     target_link_libraries(ShowActsVersion PRIVATE ActsPluginEDM4hep)
0055 endif()
0056 
0057 option(GEOMODEL "Build with GeoModel" ON)
0058 if(GEOMODEL)
0059     message(STATUS "Adding GeoModel plugin")
0060     find_package(Acts CONFIG REQUIRED COMPONENTS PluginGeoModel)
0061     target_link_libraries(ShowActsVersion PRIVATE ActsPluginGeoModel)
0062 endif()