Back to home page

sPhenix 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 with ACTS_BUILD_EVERYTHING=on
0006 find_package(
0007   Acts CONFIG REQUIRED
0008   COMPONENTS
0009     Core
0010     Fatras
0011     PluginIdentification
0012     PluginJson
0013     PluginLegacy
0014     PluginTGeo)
0015 
0016 # place artifacts in GNU-like paths, e.g. binaries in `<build>/bin`
0017 include(GNUInstallDirs)
0018 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
0019 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
0020 
0021 # link with all optional components even when they are not really used
0022 # to check e.g. for possible linker issues
0023 add_executable(ShowActsVersion ShowActsVersion.cpp)
0024 target_link_libraries(
0025   ShowActsVersion
0026   PRIVATE
0027     ActsCore
0028     ActsFatras
0029     ActsPluginIdentification
0030     ActsPluginJson
0031     ActsPluginLegacy
0032     ActsPluginTGeo)
0033 
0034 option(DD4HEP "Build with DD4hep" ON)
0035 if(DD4HEP)
0036   message(STATUS "Adding DD4hep plugin")
0037   find_package(Acts CONFIG REQUIRED COMPONENTS PluginDD4hep)
0038   target_link_libraries( ShowActsVersion PRIVATE ActsPluginDD4hep)
0039 endif()
0040 
0041 option(PODIO "Build with podio" ON)
0042 if(PODIO)
0043   message(STATUS "Adding podio plugin")
0044   find_package(Acts CONFIG REQUIRED COMPONENTS PluginPodio)
0045   target_link_libraries( ShowActsVersion PRIVATE ActsPluginPodio)
0046 endif()
0047 
0048 option(EDM4HEP "Build with EDM4hep" ON)
0049 if(EDM4HEP)
0050   message(STATUS "Adding EDM4hep plugin")
0051   find_package(Acts CONFIG REQUIRED COMPONENTS PluginEDM4hep)
0052   target_link_libraries( ShowActsVersion PRIVATE ActsPluginEDM4hep)
0053 endif()