Warning, /acts/Plugins/Podio/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_library(ActsPluginPodio SHARED src/PodioUtil.cpp)
0002
0003 target_include_directories(
0004 ActsPluginPodio
0005 PUBLIC
0006 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0007 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
0008 )
0009 target_link_libraries(ActsPluginPodio PUBLIC ActsCore)
0010
0011 # target_link_libraries(ActsPluginEDM4hep PUBLIC EDM4HEP::edm4hep)
0012
0013 # message(STATUS "IO HANDLERS: ${PODIO_IO_HANDLERS}")
0014
0015 podio_generate_datamodel(
0016 ActsPodioEdm
0017 ${CMAKE_CURRENT_LIST_DIR}/edm.yml
0018 headers
0019 sources
0020 IO_BACKEND_HANDLERS ${PODIO_IO_HANDLERS}
0021 )
0022
0023 podio_add_datamodel_core_lib(ActsPodioEdm "${headers}" "${sources}")
0024
0025 target_link_libraries(
0026 ActsPluginPodio
0027 PUBLIC ActsPodioEdm ROOT::Core podio::podio podio::podioRootIO
0028 )
0029
0030 target_compile_options(ActsPodioEdm PRIVATE "-Wno-old-style-cast")
0031
0032 podio_add_root_io_dict(ActsPodioEdmDict ActsPodioEdm "${headers}" src/selection.xml)
0033 add_library(Acts::ActsPodioEdmDict ALIAS ActsPodioEdmDict)
0034
0035 target_compile_options(ActsPodioEdmDict PRIVATE "-Wno-old-style-cast")
0036
0037 install(
0038 TARGETS ActsPodioEdm
0039 EXPORT ActsPodioEdmTargets
0040 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
0041 PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ActsPodioEdm
0042 )
0043
0044 install(
0045 DIRECTORY ActsPodioEdm
0046 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ActsPodioEdm
0047 )
0048
0049 set(install_package_config_dir "${CMAKE_INSTALL_LIBDIR}/cmake/Acts")
0050 install(EXPORT ActsPodioEdmTargets DESTINATION ${install_package_config_dir})
0051
0052 install(
0053 TARGETS ActsPluginPodio
0054 EXPORT ActsPluginPodioTargets
0055 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
0056 )
0057 install(DIRECTORY include/Acts DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
0058
0059 install(
0060 TARGETS ActsPodioEdmDict
0061 EXPORT ActsPodioEdmTargets
0062 RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
0063 LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
0064 PUBLIC_HEADER
0065 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/ActsPodioEdm"
0066 COMPONENT dev
0067 )
0068
0069 install(
0070 FILES "${CMAKE_CURRENT_BINARY_DIR}/ActsPodioEdmDictDict.rootmap"
0071 DESTINATION "${CMAKE_INSTALL_LIBDIR}"
0072 COMPONENT dev
0073 )
0074
0075 if(${ROOT_VERSION} GREATER 6)
0076 install(
0077 FILES "${CMAKE_CURRENT_BINARY_DIR}/libActsPodioEdmDict_rdict.pcm"
0078 DESTINATION "${CMAKE_INSTALL_LIBDIR}"
0079 COMPONENT dev
0080 )
0081 endif()