Skip to content

Commit

Permalink
fix: rm find_package outside jana_plugin.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Jan 15, 2025
1 parent 451c246 commit 57775a6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/benchmarks/reconstruction/TRACKINGcheck/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ plugin_add_eigen3(${PLUGIN_NAME})
plugin_add_event_model(${PLUGIN_NAME})

# Add libraries (works same as target_include_directories)
plugin_link_libraries(${PLUGIN_NAME} Eigen3::Eigen)
plugin_link_libraries(${PLUGIN_NAME})
1 change: 0 additions & 1 deletion src/benchmarks/reconstruction/femc_studies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ get_filename_component(PLUGIN_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
plugin_add(${PLUGIN_NAME})

# Find dependencies
find_package(ROOT REQUIRED COMPONENTS Core Tree Hist RIO EG)
plugin_add_event_model(${PLUGIN_NAME})
plugin_add_dd4hep(${PLUGIN_NAME})
plugin_add_acts(${PLUGIN_NAME})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ get_filename_component(PLUGIN_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
plugin_add(${PLUGIN_NAME})

# Find dependencies
find_package(ROOT REQUIRED COMPONENTS Core Tree Hist RIO EG)
plugin_add_event_model(${PLUGIN_NAME})
plugin_add_dd4hep(${PLUGIN_NAME})
plugin_add_acts(${PLUGIN_NAME})
Expand Down
12 changes: 2 additions & 10 deletions src/benchmarks/reconstruction/tof_efficiency/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ plugin_add(${PLUGIN_NAME})

# Find dependencies
plugin_add_dd4hep(${PLUGIN_NAME})
find_package(ROOT REQUIRED COMPONENTS Core Tree Hist RIO EG)
plugin_add_acts(${PLUGIN_NAME})
plugin_add_cern_root(${PLUGIN_NAME})
plugin_add_event_model(${PLUGIN_NAME})

# The macro grabs sources as *.cc *.cpp *.c and headers as *.h *.hh *.hpp Then
Expand All @@ -20,12 +20,4 @@ plugin_glob_all(${PLUGIN_NAME})

# Add libraries (same as target_include_directories but for both plugin and
# library)
plugin_link_libraries(
${PLUGIN_NAME}
ROOT::Core
ROOT::Tree
ROOT::Hist
ROOT::RIO
ROOT::EG
ActsCore
EDM4EIC::edm4eic)
plugin_link_libraries(${PLUGIN_NAME})
12 changes: 2 additions & 10 deletions src/benchmarks/reconstruction/tracking_efficiency/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ plugin_add(${PLUGIN_NAME})

# Find dependencies
plugin_add_dd4hep(${PLUGIN_NAME})
find_package(ROOT REQUIRED COMPONENTS Core Tree Hist RIO EG)
plugin_add_acts(${PLUGIN_NAME})
plugin_add_cern_root(${PLUGIN_NAME})
plugin_add_event_model(${PLUGIN_NAME})

# The macro grabs sources as *.cc *.cpp *.c and headers as *.h *.hh *.hpp Then
Expand All @@ -20,12 +20,4 @@ plugin_glob_all(${PLUGIN_NAME})

# Add libraries (same as target_include_directories but for both plugin and
# library)
plugin_link_libraries(
${PLUGIN_NAME}
ROOT::Core
ROOT::Tree
ROOT::Hist
ROOT::RIO
ROOT::EG
ActsCore
EDM4EIC::edm4eic)
plugin_link_libraries(${PLUGIN_NAME})
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ get_filename_component(PLUGIN_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
plugin_add(${PLUGIN_NAME})

# Find dependencies
find_package(ROOT REQUIRED COMPONENTS Core Tree Hist RIO EG)
plugin_add_event_model(${PLUGIN_NAME})
plugin_add_dd4hep(${PLUGIN_NAME})
plugin_add_acts(${PLUGIN_NAME})
Expand Down

0 comments on commit 57775a6

Please sign in to comment.