Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/Examples/Python/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 set(_python_install_dir "python/acts")
0006 
0007 target_sources(
0008     ActsPythonBindings
0009     PRIVATE
0010         src/ModuleEntry.cpp
0011         src/Framework.cpp
0012         src/Alignment.cpp
0013         src/Detector.cpp
0014         src/Digitization.cpp
0015         src/MaterialMapping.cpp
0016         src/ExampleAlgorithms.cpp
0017         src/Output.cpp
0018         src/Input.cpp
0019         src/Propagation.cpp
0020         src/Generators.cpp
0021         src/Obj.cpp
0022         src/TruthTracking.cpp
0023         src/TrackFitting.cpp
0024         src/TrackFinding.cpp
0025         src/Vertexing.cpp
0026         src/AmbiguityResolution.cpp
0027         src/Utilities.cpp
0028 )
0029 
0030 install(TARGETS ActsPythonBindings DESTINATION ${_python_install_dir})
0031 
0032 set_target_properties(
0033     ActsPythonBindings
0034     PROPERTIES INSTALL_RPATH "\$ORIGIN/../../${CMAKE_INSTALL_LIBDIR}"
0035 )
0036 set_target_properties(
0037     ActsPythonBindings
0038     PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${_python_dir}/acts
0039 )
0040 
0041 target_link_libraries(
0042     ActsPythonBindings
0043     PUBLIC
0044         Acts::PythonUtilities
0045         Acts::ExamplesFramework
0046         Acts::ExamplesGeometry
0047         Acts::ExamplesDetectorGeneric
0048         Acts::ExamplesIoCsv
0049         Acts::ExamplesIoObj
0050         Acts::ExamplesGenerators
0051         Acts::ExamplesPrinters
0052         Acts::ExamplesTrackFinding
0053         Acts::ExamplesTrackFitting
0054         Acts::ExamplesVertexing
0055         Acts::ExamplesFatras
0056         Acts::ExamplesDetectorTelescope
0057         Acts::ExamplesUtilities
0058         Acts::ExamplesAmbiguityResolution
0059         Acts::ExamplesTruthTracking
0060         Acts::ExamplesDigitization
0061         Acts::ExamplesPropagation
0062         Acts::ExamplesMaterialMapping
0063 )
0064 
0065 set(py_files
0066     examples/__init__.py
0067     examples/simulation.py
0068     examples/reconstruction.py
0069     examples/itk.py
0070     examples/odd.py
0071 )
0072 
0073 #target_link_libraries(ActsPythonBindings PUBLIC Acts::ExamplesIoHepMC3)
0074 #target_sources(ActsPythonBindings PRIVATE src/HepMC3.cpp)
0075 #list(APPEND py_files examples/hepmc3/__init__.py)
0076 #list(APPEND py_files examples/hepmc3/__main__.py)
0077 
0078 foreach(f ${py_files})
0079     set(_target ${_python_dir}/acts/${f})
0080     get_filename_component(_dir ${_target} DIRECTORY)
0081     file(MAKE_DIRECTORY ${_dir})
0082 
0083     file(
0084         CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/python/acts/${f} ${_target}
0085         SYMBOLIC
0086     )
0087 
0088     get_filename_component(_rel ${f} DIRECTORY)
0089 
0090     install(
0091         FILES ${CMAKE_CURRENT_SOURCE_DIR}/python/acts/${f}
0092         DESTINATION ${_python_install_dir}/${_rel}
0093     )
0094 endforeach()