Warning, /EICrecon/src/global/reco/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.16)
0002
0003 get_filename_component(PLUGIN_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
0004
0005 # Function creates ${PLUGIN_NAME}_plugin and ${PLUGIN_NAME}_library targets
0006 # Setting default includes, libraries and installation paths
0007 plugin_add(${PLUGIN_NAME} WITH_SHARED_LIBRARY PLUGIN_USE_CC_ONLY)
0008
0009 # The macro grabs sources as *.cc *.cpp *.c and headers as *.h *.hh *.hpp Then
0010 # correctly sets sources for ${_name}_plugin and ${_name}_library targets Adds
0011 # headers to the correct installation directory
0012 plugin_glob_all(${PLUGIN_NAME})
0013
0014 # Find dependencies
0015 plugin_add_dd4hep(${PLUGIN_NAME})
0016 plugin_add_cern_root(${PLUGIN_NAME})
0017 plugin_add_event_model(${PLUGIN_NAME})
0018
0019 # The macro grabs sources as *.cc *.cpp *.c and headers as *.h *.hh *.hpp Then
0020 # correctly sets sources for ${_name}_plugin and ${_name}_library targets Adds
0021 # headers to the correct installation directory
0022 plugin_glob_all(${PLUGIN_NAME})
0023
0024 # Add include directories (works same as target_include_directories)
0025 # plugin_include_directories(${PLUGIN_NAME} SYSTEM PUBLIC ... )
0026
0027 # Add libraries (same as target_include_directories but for both plugin and
0028 # library)
0029 plugin_link_libraries(${PLUGIN_NAME} algorithms_digi_library
0030 algorithms_tracking_library algorithms_reco_library)
0031 if(USE_ONNX)
0032 plugin_link_libraries(${PLUGIN_NAME} algorithms_onnx_library)
0033 endif()