Skip to content

Commit

Permalink
build: add pid algorithms lib
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Jun 1, 2023
1 parent 7ca5acd commit 3f994e4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/algorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ cmake_minimum_required(VERSION 3.16)

add_subdirectory( calorimetry )
add_subdirectory( tracking )
add_subdirectory( pid )
add_subdirectory( digi )
add_subdirectory( reco )
18 changes: 18 additions & 0 deletions src/algorithms/pid/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
cmake_minimum_required(VERSION 3.16)

set(PLUGIN_NAME "algorithms_pid")

# Function creates ${PLUGIN_NAME}_plugin and ${PLUGIN_NAME}_library targets
# Setting default includes, libraries and installation paths
plugin_add(${PLUGIN_NAME} WITH_STATIC_LIBRARY)

# The macro grabs sources as *.cc *.cpp *.c and headers as *.h *.hh *.hpp
# Then correctly sets sources for ${_name}_plugin and ${_name}_library targets
# Adds headers to the correct installation directory
plugin_glob_all(${PLUGIN_NAME})

# Find dependencies
plugin_add_dd4hep(${PLUGIN_NAME})
plugin_add_irt(${PLUGIN_NAME})
plugin_add_event_model(${PLUGIN_NAME})
plugin_add_cern_root(${PLUGIN_NAME})
2 changes: 1 addition & 1 deletion src/global/pid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ plugin_add_event_model(${PLUGIN_NAME})

# Add libraries
# (same as target_include_directories but for both plugin and library)
plugin_link_libraries(${PLUGIN_NAME} algorithms_tracking_library)
plugin_link_libraries(${PLUGIN_NAME} algorithms_tracking_library algorithms_pid_library)

0 comments on commit 3f994e4

Please sign in to comment.