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 ActsCore ActsFatras ActsPluginJson ActsPluginRoot ActsPluginCovfie
0028 )
0029
0030 option(DD4HEP "Build with DD4hep" ON)
0031 if(DD4HEP)
0032 message(STATUS "Adding DD4hep plugin")
0033 find_package(Acts CONFIG REQUIRED COMPONENTS PluginDD4hep)
0034 target_link_libraries(ShowActsVersion PRIVATE ActsPluginDD4hep)
0035 endif()
0036
0037 option(PODIO "Build with podio" ON)
0038 if(PODIO)
0039 message(STATUS "Adding podio plugin")
0040 find_package(Acts CONFIG REQUIRED COMPONENTS PluginPodio)
0041 target_link_libraries(ShowActsVersion PRIVATE ActsPluginPodio)
0042 endif()
0043
0044 option(EDM4HEP "Build with EDM4hep" ON)
0045 if(EDM4HEP)
0046 message(STATUS "Adding EDM4hep plugin")
0047 find_package(Acts CONFIG REQUIRED COMPONENTS PluginEDM4hep)
0048 target_link_libraries(ShowActsVersion PRIVATE ActsPluginEDM4hep)
0049 endif()
0050
0051 option(GEOMODEL "Build with GeoModel" ON)
0052 if(GEOMODEL)
0053 message(STATUS "Adding GeoModel plugin")
0054 find_package(Acts CONFIG REQUIRED COMPONENTS PluginGeoModel)
0055 target_link_libraries(ShowActsVersion PRIVATE ActsPluginGeoModel)
0056 endif()