Warning, /acts/Detray/python/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) 2016 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 https://mozilla.org/MPL/2.0/.
0008
0009 # Set up the python stall directories
0010 set(_python_dir "${CMAKE_BINARY_DIR}/python")
0011 file(MAKE_DIRECTORY ${_python_dir})
0012 file(MAKE_DIRECTORY ${_python_dir}/detray)
0013
0014 # Set up the source script in the python directory
0015 configure_file(setup.sh.in ${_python_dir}/setup.sh @ONLY)
0016 install(FILES ${_python_dir}/setup.sh DESTINATION python)
0017
0018 # Set up the init file for the detray python module
0019 set(_target ${_python_dir}/detray/__init__.py)
0020 file(
0021 CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/detray/__init__.py ${_target}
0022 SYMBOLIC
0023 )
0024
0025 # Allow access to the python detectors package from the main __init__.py
0026 file(
0027 CREATE_LINK
0028 ${CMAKE_CURRENT_SOURCE_DIR}/detray/detectors
0029 ${_python_dir}/detray/detectors
0030 SYMBOLIC
0031 )
0032
0033 install(
0034 FILES ${CMAKE_CURRENT_SOURCE_DIR}/detray/__init__.py
0035 DESTINATION ${DETRAY_PYTHON_INSTALL_DIR}
0036 )