Back to home page

EIC code displayed by LXR

 
 

    


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

0001 set(_python_dir "${CMAKE_BINARY_DIR}/python")
0002 file(MAKE_DIRECTORY ${_python_dir})
0003 file(MAKE_DIRECTORY ${_python_dir}/acts)
0004 
0005 pybind11_add_module(ActsFatrasPythonBindings src/Fatras.cpp)
0006 install(
0007     TARGETS ActsFatrasPythonBindings
0008     DESTINATION ${_acts_python_install_dir}
0009 )
0010 
0011 set_target_properties(
0012     ActsFatrasPythonBindings
0013     PROPERTIES INSTALL_RPATH "${_acts_python_modules_rpath}"
0014 )
0015 set_target_properties(
0016     ActsFatrasPythonBindings
0017     PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${_python_dir}/acts
0018 )
0019 
0020 target_link_libraries(
0021     ActsFatrasPythonBindings
0022     PUBLIC Acts::Core Acts::Fatras Acts::PythonUtilities
0023 )
0024 add_dependencies(ActsPythonBindings ActsFatrasPythonBindings)
0025 
0026 set(_target ${_python_dir}/acts/fatras.py)
0027 file(
0028     CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/python/fatras.py ${_target}
0029     SYMBOLIC
0030 )
0031 install(
0032     FILES ${CMAKE_CURRENT_SOURCE_DIR}/python/fatras.py
0033     DESTINATION ${_acts_python_install_dir}
0034 )
0035 
0036 set(py_files fatras.py)
0037 
0038 foreach(f ${py_files})
0039     set(_target ${_python_dir}/acts/${f})
0040     get_filename_component(_dir ${_target} DIRECTORY)
0041     file(MAKE_DIRECTORY ${_dir})
0042 
0043     file(
0044         CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/python/${f} ${_target}
0045         SYMBOLIC
0046     )
0047 
0048     get_filename_component(_rel ${f} DIRECTORY)
0049 
0050     install(
0051         FILES ${CMAKE_CURRENT_SOURCE_DIR}/python/${f}
0052         DESTINATION ${_acts_python_install_dir}/${_rel}
0053     )
0054 endforeach()