Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/cmake/ActsDD4hepGeometryModuleHelpers.cmake is written in an unsupported language. File is not indexed.

0001 function(acts_add_dd4hep_geometry_module target)
0002     if(NOT UNIX)
0003         message(
0004             FATAL_ERROR
0005             "Runtime geometry modules are only supported on Unix-like systems (Linux, macOS). "
0006             "Cannot configure DD4hep geometry module target '${target}' on this platform."
0007         )
0008     endif()
0009     if(
0010         NOT DEFINED ACTS_GEOMETRY_MODULE_ABI_TAG
0011         OR ACTS_GEOMETRY_MODULE_ABI_TAG STREQUAL ""
0012     )
0013         message(
0014             FATAL_ERROR
0015             "ACTS_GEOMETRY_MODULE_ABI_TAG is not set; cannot configure DD4hep geometry module target '${target}'."
0016         )
0017     endif()
0018     if(NOT DEFINED DD4hep_VERSION OR DD4hep_VERSION STREQUAL "")
0019         message(
0020             FATAL_ERROR
0021             "DD4hep_VERSION is not set; cannot configure DD4hep geometry module target '${target}'."
0022         )
0023     endif()
0024 
0025     set(_acts_dd4hep_geometry_module_abi_tag
0026         "${ACTS_GEOMETRY_MODULE_ABI_TAG}|dd4hep-${DD4hep_VERSION}"
0027     )
0028 
0029     add_library(${target} SHARED ${ARGN})
0030 
0031     target_link_libraries(${target} PRIVATE Acts::PluginDD4hep)
0032     target_compile_definitions(
0033         ${target}
0034         PRIVATE
0035             ACTS_GEOMETRY_MODULE_ABI_TAG="${_acts_dd4hep_geometry_module_abi_tag}"
0036     )
0037 endfunction()