Skip to content

Commit

Permalink
chore: Rearrange central CMake, plugins vs examples (#2280)
Browse files Browse the repository at this point in the history
Separating plugins and examples into their sections
  • Loading branch information
andiwand committed Jul 7, 2023
1 parent e022486 commit 689d82a
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,8 @@ endmacro()
# find packages explicitly for each component even if this means searching for
# the same package twice. This avoids having complex if/else trees to sort out
# when a particular package is actually needed.

# plugin dependencies
if(ACTS_BUILD_EXAMPLES_PYTHON_BINDINGS)
find_package(Python 3.8 REQUIRED COMPONENTS Interpreter Development)
if(ACTS_USE_SYSTEM_PYBIND11)
find_package(pybind11 CONFIG REQUIRED)
else()
add_subdirectory(thirdparty/pybind11)
endif()
endif()
if(ACTS_BUILD_PLUGIN_ACTSVG)
if(ACTS_USE_SYSTEM_ACTSVG)
message(STATUS "Using system installation of actsvg")
Expand Down Expand Up @@ -345,10 +338,16 @@ if(ACTS_BUILD_PLUGIN_EXATRKX)
find_package(TorchScatter REQUIRED)
endif()
endif()

if(ACTS_BUILD_PLUGIN_ONNX OR ACTS_EXATRKX_ENABLE_ONNX)
find_package(OnnxRuntime ${_acts_onnxruntime_version} REQUIRED)
endif()
if(ACTS_BUILD_PLUGIN_EDM4HEP)
find_package(podio ${_acts_podio_version} REQUIRED CONFIG)
find_package(EDM4HEP ${_acts_edm4hep_version} REQUIRED CONFIG)
endif()
if(ACTS_BUILD_PLUGIN_GEANT4)
find_package(Geant4 REQUIRED CONFIG COMPONENTS gdml)
endif()

# examples dependencies
if(ACTS_BUILD_EXAMPLES)
Expand All @@ -359,18 +358,19 @@ if(ACTS_BUILD_EXAMPLES)
check_root_compatibility()
add_subdirectory(thirdparty/dfelibs)
endif()
if(ACTS_BUILD_EXAMPLES_PYTHON_BINDINGS)
find_package(Python 3.8 REQUIRED COMPONENTS Interpreter Development)
if(ACTS_USE_SYSTEM_PYBIND11)
find_package(pybind11 CONFIG REQUIRED)
else()
add_subdirectory(thirdparty/pybind11)
endif()
endif()
if(ACTS_BUILD_EXAMPLES_DD4HEP AND ACTS_BUILD_EXAMPLES_GEANT4)
find_package(DD4hep ${_acts_dd4hep_version} REQUIRED CONFIG COMPONENTS DDCore DDG4 DDDetectors)
elseif(ACTS_BUILD_EXAMPLES_DD4HEP)
find_package(DD4hep ${_acts_dd4hep_version} REQUIRED CONFIG COMPONENTS DDCore DDDetectors)
endif()
if(ACTS_BUILD_PLUGIN_EDM4HEP)
find_package(podio ${_acts_podio_version} REQUIRED CONFIG)
find_package(EDM4HEP ${_acts_edm4hep_version} REQUIRED CONFIG)
endif()
if(ACTS_BUILD_PLUGIN_GEANT4)
find_package(Geant4 REQUIRED CONFIG COMPONENTS gdml)
endif()
if(ACTS_BUILD_EXAMPLES_HEPMC3)
find_package(HepMC3 ${_acts_hepmc3_version} REQUIRED CONFIG)
endif()
Expand Down

0 comments on commit 689d82a

Please sign in to comment.