Back to home page

EIC code displayed by LXR

 
 

    


Warning, /jana2/src/libraries/JANA/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 
0002 
0003 # Everything else happens below
0004 set(JANA2_SOURCES
0005 
0006     JApplication.cc
0007     JEvent.cc
0008     JEventSource.cc
0009     JFactory.cc
0010     JFactorySet.cc
0011     JService.cc
0012     JVersion.cc
0013     JEvent.cc
0014     JLogger.cc
0015 
0016     Engine/JExecutionEngine.cc
0017 
0018     Topology/JArrow.cc
0019     Topology/JEventPool.cc
0020     Topology/JEventSourceArrow.cc
0021     Topology/JEventMapArrow.cc
0022     Topology/JEventTapArrow.cc
0023     Topology/JMultilevelSourceArrow.cc
0024     Topology/JTopologyBuilder.cc
0025 
0026     Services/JComponentManager.cc
0027     Services/JParameterManager.cc
0028     Services/JPluginLoader.cc
0029     Services/JWiringService.cc
0030 
0031     Components/JComponent.cc
0032     Components/JComponentSummary.cc
0033     Components/JDatabundle.cc
0034     Components/JHasInputs.cc
0035     Components/JHasOutputs.cc
0036 
0037     Utils/JCpuInfo.cc
0038     Utils/JProcessorMapping.cc
0039     Utils/JBenchUtils.cc
0040     Utils/JStringification.cc
0041     Utils/JAutoActivator.cc
0042     Utils/JTablePrinter.cc
0043     Utils/JCallGraphRecorder.cc
0044     Utils/JInspector.cc
0045     Utils/JApplicationInspector.cc
0046     Utils/JBacktrace.cc
0047 
0048     Calibrations/JCalibration.cc
0049     Calibrations/JCalibrationFile.cc
0050     Calibrations/JResource.cc
0051 
0052     Geometry/JGeometryManager.cc
0053     Geometry/JGeometryXML.cc
0054 
0055     CLI/JBenchmarker.cc
0056     CLI/JSignalHandler.cc
0057     CLI/JMain.cc
0058     )
0059 
0060 #if (${USE_PODIO})
0061 #    list(APPEND JANA2_SOURCES
0062 #   )
0063 #endif()
0064 
0065 if (NOT ${USE_XERCES})
0066     message(STATUS "Skipping support for libJANA's JGeometryXML because USE_XERCES=Off")
0067 endif()
0068 
0069 add_library(jana2 OBJECT ${JANA2_SOURCES})
0070 
0071 find_package(Threads REQUIRED)
0072 set(THREADS_PREFER_PTHREAD_FLAG ON)
0073 target_link_libraries(jana2 PUBLIC ${CMAKE_DL_LIBS} Threads::Threads)
0074 target_link_libraries(jana2 PRIVATE VendoredTomlPlusPlus)
0075 target_link_libraries(jana2 PRIVATE VendoredMD5) # To pull in the header file
0076 
0077 if (${USE_PODIO})
0078     target_link_libraries(jana2 PUBLIC podio::podio podio::podioRootIO ${ROOT_LIBRARIES})
0079 elseif (${USE_ROOT})
0080     target_link_libraries(jana2 PUBLIC ${ROOT_LIBRARIES})
0081 endif()
0082 
0083 
0084 # Build static library
0085 add_library(jana2_static_lib STATIC $<TARGET_OBJECTS:jana2> $<TARGET_OBJECTS:VendoredMD5>)
0086 set_target_properties(jana2_static_lib PROPERTIES PREFIX "lib" OUTPUT_NAME "JANA")
0087 
0088 target_include_directories(jana2_static_lib PUBLIC $<INSTALL_INTERFACE:include>)
0089 target_link_libraries(jana2_static_lib PUBLIC ${CMAKE_DL_LIBS} Threads::Threads)
0090 target_link_libraries(jana2_static_lib PUBLIC VendoredTomlPlusPlus)
0091 
0092 if (${USE_PODIO})
0093     target_link_libraries(jana2_static_lib PUBLIC podio::podio podio::podioRootIO ${ROOT_LIBRARIES})
0094 elseif (${USE_ROOT})
0095     target_link_libraries(jana2_static_lib PUBLIC ${ROOT_LIBRARIES})
0096 endif()
0097 install(TARGETS jana2_static_lib EXPORT jana2_targets DESTINATION lib)
0098 
0099 
0100 # Build shared library
0101 add_library(jana2_shared_lib SHARED $<TARGET_OBJECTS:jana2> $<TARGET_OBJECTS:VendoredMD5>)
0102 set_target_properties(jana2_shared_lib PROPERTIES PREFIX "lib" OUTPUT_NAME "JANA")
0103 
0104 target_include_directories(jana2_shared_lib PUBLIC $<INSTALL_INTERFACE:include>)
0105 target_link_libraries(jana2_shared_lib PUBLIC ${CMAKE_DL_LIBS} Threads::Threads)
0106 target_link_libraries(jana2_shared_lib PUBLIC VendoredTomlPlusPlus)
0107 
0108 if (${USE_PODIO})
0109     target_link_libraries(jana2_shared_lib PUBLIC podio::podio podio::podioRootIO ${ROOT_LIBRARIES})
0110 elseif (${USE_ROOT})
0111     target_link_libraries(jana2_shared_lib PUBLIC ${ROOT_LIBRARIES})
0112 endif()
0113 
0114 install(TARGETS jana2_shared_lib EXPORT jana2_targets DESTINATION lib)
0115 set(INSTALL_RPATH_USE_LINK_PATH True)
0116 
0117 
0118 # Install "public" header files
0119 
0120 file(GLOB jana_headers "*.h*")
0121 file(GLOB jana_engine_headers "Engine/*.h*")
0122 file(GLOB jana_services_headers "Services/*.h*")
0123 file(GLOB jana_utils_headers "Utils/*.h*")
0124 file(GLOB jana_calibs_headers "Calibrations/*.h*")
0125 file(GLOB jana_geometry_headers "Geometry/*.h*")
0126 file(GLOB jana_cli_headers "CLI/*.h*")
0127 #file(GLOB jana_podio_headers "Podio/*.h*")
0128 file(GLOB jana_component_headers "Components/*.h*")
0129 file(GLOB jana_topology_headers "Topology/*.h*")
0130 
0131 install(FILES ${jana_headers} DESTINATION include/JANA)
0132 install(FILES ${jana_engine_headers} DESTINATION include/JANA/Engine)
0133 install(FILES ${jana_services_headers} DESTINATION include/JANA/Services)
0134 install(FILES ${jana_utils_headers} DESTINATION include/JANA/Utils)
0135 install(FILES ${jana_calibs_headers} DESTINATION include/JANA/Calibrations)
0136 install(FILES ${jana_geometry_headers} DESTINATION include/JANA/Geometry)
0137 install(FILES ${jana_cli_headers} DESTINATION include/JANA/CLI)
0138 install(FILES ${jana_component_headers} DESTINATION include/JANA/Components)
0139 install(FILES ${jana_topology_headers} DESTINATION include/JANA/Topology)
0140 
0141 #if (${USE_PODIO})
0142 #    install(FILES ${jana_podio_headers} DESTINATION include/JANA/Podio)
0143 #endif()
0144 
0145 
0146 
0147 
0148 
0149