Warning, /algorithms/tracking/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 tracking utilities
0006 ################################################################################
0007
0008 set(SUBDIR "tracking")
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 )
0016
0017 add_library(${LIBRARY} SHARED ${SRC})
0018 add_library(algorithms::${LIBRARY} ALIAS ${LIBRARY})
0019 target_link_libraries(${LIBRARY}
0020 PUBLIC
0021 EDM4HEP::edm4hep
0022 EDM4EIC::edm4eic
0023 DD4hep::DDRec
0024 algorithms::core
0025 fmt::fmt)
0026 target_include_directories(${LIBRARY}
0027 PUBLIC
0028 $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/${SUBDIR}/include>
0029 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
0030 set_target_properties(${LIBRARY} PROPERTIES
0031 OUTPUT_NAME algo${SUBDIR}
0032 VERSION ${PROJECT_VERSION}
0033 SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
0034
0035 install(TARGETS ${LIBRARY}
0036 EXPORT algorithmsTrackingTargets
0037 RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
0038 LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
0039 ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT lib
0040 INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
0041
0042 install(DIRECTORY ${PROJECT_SOURCE_DIR}/${SUBDIR}/include/algorithms
0043 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT dev)
0044
0045 # TODO: Testing
0046 #if(BUILD_TESTING)
0047 # enable_testing()
0048 #endif()
0049