Back to home page

EIC code displayed by LXR

 
 

    


Warning, /juggler/JugBase/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, Whitney Armstrong
0003 
0004 ################################################################################
0005 # Package: JugBase
0006 ################################################################################
0007 
0008 gaudi_add_header_only_library(JugBase
0009   LINK
0010   Gaudi::GaudiKernel Gaudi::GaudiAlgLib
0011   podio::podioRootIO
0012   ROOT::Core ROOT::RIO ROOT::Tree
0013   DD4hep::DDRec
0014   ActsCore ActsPluginDD4hep
0015   k4FWCore::k4FWCore
0016 )
0017 
0018 file(GLOB JugBasePlugins_sources CONFIGURE_DEPENDS src/components/*.cpp)
0019 gaudi_add_module(JugBasePlugins
0020   SOURCES
0021   ${JugBasePlugins_sources}
0022   LINK
0023   Gaudi::GaudiKernel Gaudi::GaudiAlgLib
0024   ROOT::Core ROOT::RIO ROOT::Tree
0025   JugBase
0026   EDM4HEP::edm4hep
0027   DD4hep::DDRec
0028   ActsCore ActsPluginDD4hep ActsPluginJson
0029   EDM4EIC::edm4eic
0030 )
0031 
0032 target_include_directories(JugBasePlugins PUBLIC
0033   $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
0034   $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
0035 )
0036 
0037 target_compile_options(JugBasePlugins PRIVATE -Wno-suggest-override)
0038 
0039 install(TARGETS JugBase JugBasePlugins
0040   EXPORT JugBaseTargets
0041   RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
0042   LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
0043   COMPONENT dev)
0044 
0045 if(BUILD_TESTING)
0046   enable_testing()
0047 endif()
0048 
0049 #add_test(NAME ProduceForReadTest
0050 #         WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
0051 #         COMMAND ${CMAKE_BINARY_DIR}/run ${PROJECT_SOURCE_DIR}/JugBase/scripts/gaudirun tests/options/simple_producer.py)
0052 #add_test(NAME ReadTest
0053 #         WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
0054 #         COMMAND ${CMAKE_BINARY_DIR}/run ${PROJECT_SOURCE_DIR}/JugBase/scripts/gaudirun tests/options/simple_reader.py)
0055 #add_test(NAME ReadGeoTest
0056 #         WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
0057 #         COMMAND ${CMAKE_BINARY_DIR}/run ${PROJECT_SOURCE_DIR}/JugBase/scripts/gaudirun tests/options/reader_with_geosvc.py)
0058 #add_test(NAME CheckReadCollectionSize
0059 #         ENVIRONMENT PYTHONPATH+=${PODIO_PYTHON_DIR}
0060 #         WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
0061 #         COMMAND python JugBase/tests/scripts/check_coll_after_read.py
0062 #         DEPENDS ReadTest)