Warning, /acts/cmake/ActsGeometryModuleHelpers.cmake is written in an unsupported language. File is not indexed.
0001 function(acts_add_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 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 geometry module target '${target}'."
0016 )
0017 endif()
0018
0019 add_library(${target} SHARED ${ARGN})
0020
0021 target_link_libraries(${target} PRIVATE Acts::Core)
0022 target_compile_definitions(
0023 ${target}
0024 PRIVATE ACTS_GEOMETRY_MODULE_ABI_TAG="${ACTS_GEOMETRY_MODULE_ABI_TAG}"
0025 )
0026 endfunction()