Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 # 3.9 required to use per-target c++ std requirement
0002 cmake_minimum_required(VERSION 3.9)
0003 
0004 project(ActsFatras LANGUAGES CXX)
0005 
0006 # could be included in a larger project, e.g. acts-framework, that also
0007 # includes acts-core as a subproject. in this case we do not need to
0008 # explicitely add it here.
0009 if(NOT TARGET ActsCore)
0010   find_package(Acts REQUIRED COMPONENTS Core)
0011 endif()
0012 # heterogeneous lookup in set-like containers requires 1.68
0013 find_package(Boost 1.68 REQUIRED COMPONENTS unit_test_framework)
0014 
0015 include(GNUInstallDirs)
0016 
0017 add_subdirectory(Core)
0018 
0019 # always build unit tests; must be set from the main CMakeLists.txt
0020 enable_testing()
0021 add_subdirectory(Tests)
0022 
0023 # CMake package configuration files
0024 include(CMakePackageConfigHelpers)
0025 configure_package_config_file(
0026   cmake/ActsFatrasConfig.cmake.in
0027   "${CMAKE_CURRENT_BINARY_DIR}/ActsFatrasConfig.cmake"
0028   INSTALL_DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake")
0029 install(
0030   FILES "${CMAKE_CURRENT_BINARY_DIR}/ActsFatrasConfig.cmake"
0031   DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake")
0032 install(
0033   EXPORT ActsFatrasTargets
0034   DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake/Fatras")