Warning, /algorithms/calorimetry/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-License-Identifier: LGPL-3.0-or-later
0002 # Copyright (C) 2022 Wouter Deconinck, Sylvester Joosten
0003
0004 ################################################################################
0005 # Package: algorithms calorimetry utilities
0006 ################################################################################
0007
0008 set(SUBDIR "calorimetry")
0009 set(LIBRARY "${SUBDIR}")
0010 set(TARGETS ${TARGETS} ${LIBRARY} PARENT_SCOPE)
0011
0012 # FIXME: adding one by one
0013 #file(GLOB SRC CONFIGURE_DEPENDS src/*.cpp)
0014 set(SRC
0015 src/ClusterRecoCoG.cpp
0016 )
0017
0018 add_library(${LIBRARY} SHARED ${SRC})
0019 add_library(algorithms::${LIBRARY} ALIAS ${LIBRARY})
0020 target_link_libraries(${LIBRARY}
0021 PUBLIC
0022 EDM4HEP::edm4hep
0023 EDM4EIC::edm4eic
0024 DD4hep::DDRec
0025 algorithms::core
0026 fmt::fmt)
0027 target_include_directories(${LIBRARY}
0028 PUBLIC
0029 $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/${SUBDIR}/include>
0030 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
0031 set_target_properties(${LIBRARY} PROPERTIES
0032 OUTPUT_NAME algo${SUBDIR}
0033 VERSION ${PROJECT_VERSION}
0034 SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
0035
0036 install(TARGETS ${LIBRARY}
0037 EXPORT algorithmsCalorimetryTargets
0038 RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
0039 LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
0040 ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT lib
0041 INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
0042
0043 install(DIRECTORY ${PROJECT_SOURCE_DIR}/${SUBDIR}/include/algorithms
0044 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT dev)
0045
0046 # TODO: Testing
0047 #if(BUILD_TESTING)
0048 # enable_testing()
0049 #endif()
0050