Warning, /acts/thirdparty/OpenDataDetector/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include(FetchContent)
0002
0003 if(NOT TARGET DD4hep::DDCore OR NOT TARGET DD4hep::DDDetectors)
0004 message(
0005 FATAL_ERROR
0006 "ACTS_BUILD_ODD requires DD4hep::DDCore and DD4hep::DDDetectors to be available as CMake targets."
0007 )
0008 endif()
0009
0010 FetchContent_Declare(ODD ${ACTS_ODD_SOURCE})
0011
0012 FetchContent_MakeAvailable(ODD)
0013
0014 FetchContent_GetProperties(
0015 ODD
0016 SOURCE_DIR ODD_SOURCE_DIR
0017 BINARY_DIR ODD_BINARY_DIR
0018 )
0019
0020 set(ODD_FACTORY_DIR "${ODD_BINARY_DIR}/factory" CACHE INTERNAL "" FORCE)
0021 set(ODD_SOURCE_DIR "${ODD_SOURCE_DIR}" CACHE INTERNAL "" FORCE)
0022
0023 message(STATUS "ODD source dir: ${ODD_SOURCE_DIR}")
0024 message(STATUS "ODD factory dir: ${ODD_FACTORY_DIR}")