Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Aug 13, 2024
1 parent b31a13a commit 4f51b04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions Examples/Algorithms/Geant4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ add_library(
src/PhysicsListFactory.cpp
src/Geant4Manager.cpp)

if (ACTS_BUILD_EXAMPLES_DD4HEP)
target_sources(ActsExamplesGeant4 PUBLIC src/DDG4DetectorConstruction.cpp)
endif()

if (ACTS_BUILD_PLUGIN_GEOMODEL)
target_sources(ActsExamplesGeant4 PUBLIC src/GeoModelDetectorConstruction.cpp)
endif()

target_compile_definitions(
ActsExamplesGeant4
PUBLIC ${Geant4_DEFINITIONS})
Expand All @@ -49,15 +41,19 @@ if (ACTS_BUILD_EXAMPLES_DD4HEP)
ActsExamplesGeant4
PUBLIC ActsExamplesDetectorDD4hep DD4hep::DDCore DD4hep::DDG4)
endif()

target_sources(ActsExamplesGeant4 PUBLIC src/DDG4DetectorConstruction.cpp)
endif()

if (ACTS_BUILD_PLUGIN_GEOMODEL)

target_sources(ActsExamplesGeant4 PUBLIC src/GeoModelDetectorConstruction.cpp)

find_library(GeoModel2G4_LIBRARY GeoModel2G4 REQUIRED)

target_link_libraries(
ActsExamplesGeant4
PRIVATE ActsPluginGeoModel ${GeoModel2G4_LIBRARY})
PUBLIC ActsPluginGeoModel ${GeoModel2G4_LIBRARY})
endif()

install(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

#pragma once

#include "Acts/Plugins/GeoModel/GeoModelTree.hpp"
#include "ActsExamples/Geant4/DetectorConstructionFactory.hpp"
#include "ActsExamples/Geant4/RegionCreator.hpp"
#include <Acts/Plugins/GeoModel/GeoModelTree.hpp>

#include <string>

Expand Down

0 comments on commit 4f51b04

Please sign in to comment.