Warning, /acts/thirdparty/GeoModel/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # This file is part of the Acts project.
0002 #
0003 # Copyright (C) 2024 CERN for the benefit of the Acts project
0004 #
0005 # This Source Code Form is subject to the terms of the Mozilla Public
0006 # License, v. 2.0. If a copy of the MPL was not distributed with this
0007 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
0008
0009 # CMake include(s).
0010 cmake_minimum_required( VERSION 3.11 )
0011 include( FetchContent )
0012
0013 # Tell the user what's happening.
0014 message( STATUS "Building GeoModel as part of the ACTS project" )
0015
0016 set( GEOMODEL_VERSION "${_acts_geomodel_version}")
0017
0018 set( GEOMODEL_SETUP_JSON OFF CACHE BOOL "Skip setting up json completely" )
0019
0020
0021 # Declare where to get VecMem from.
0022 set( ACTS_GEOMODEL_GIT_REPOSITORY "https://gitlab.cern.ch/GeoModelDev/GeoModel"
0023 CACHE STRING "Git repository to take GeoModel from" )
0024 set( ACTS_GEOMODEL_GIT_TAG "${GEOMODEL_VERSION}" CACHE STRING "Version of GeoModel to build" )
0025 mark_as_advanced( ACTS_GEOMODEL_GIT_REPOSITORY ACTS_GEOMODEL_GIT_TAG )
0026 FetchContent_Declare( geomodel
0027 GIT_REPOSITORY "${ACTS_GEOMODEL_GIT_REPOSITORY}"
0028 GIT_TAG "${ACTS_GEOMODEL_GIT_TAG}"
0029 PATCH_COMMAND git am ${CMAKE_CURRENT_SOURCE_DIR}/0001-Add-option-to-skip-setting-up-json-completely.patch
0030 )
0031
0032 # Now set up its build.
0033 FetchContent_MakeAvailable( geomodel )