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 PluginRoot 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         Acts::Core
0029         Acts::Fatras
0030         Acts::PluginJson
0031         Acts::PluginRoot
0032         Acts::PluginCovfie
0033 )
0034 
0035 option(DD4HEP "Build with DD4hep" ON)
0036 if(DD4HEP)
0037     message(STATUS "Adding DD4hep plugin")
0038     find_package(Acts CONFIG REQUIRED COMPONENTS PluginDD4hep)
0039     target_link_libraries(ShowActsVersion PRIVATE Acts::PluginDD4hep)
0040 endif()
0041 
0042 option(PODIO "Build with podio" ON)
0043 if(PODIO)
0044     message(STATUS "Adding podio plugin")
0045     find_package(Acts CONFIG REQUIRED COMPONENTS PluginPodio)
0046     target_link_libraries(ShowActsVersion PRIVATE Acts::PluginPodio)
0047 endif()
0048 
0049 option(EDM4HEP "Build with EDM4hep" ON)
0050 if(EDM4HEP)
0051     message(STATUS "Adding EDM4hep plugin")
0052     find_package(Acts CONFIG REQUIRED COMPONENTS PluginEDM4hep)
0053     target_link_libraries(ShowActsVersion PRIVATE Acts::PluginEDM4hep)
0054 endif()
0055 
0056 option(GEOMODEL "Build with GeoModel" ON)
0057 if(GEOMODEL)
0058     message(STATUS "Adding GeoModel plugin")
0059     find_package(Acts CONFIG REQUIRED COMPONENTS PluginGeoModel)
0060     target_link_libraries(ShowActsVersion PRIVATE Acts::PluginGeoModel)
0061 endif()