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/JComponentSummary.cc
0032     Components/JHasInputs.cc
0033 
0034     Utils/JCpuInfo.cc
0035     Utils/JProcessorMapping.cc
0036     Utils/JBenchUtils.cc
0037     Utils/JStringification.cc
0038     Utils/JAutoActivator.cc
0039     Utils/JTablePrinter.cc
0040     Utils/JCallGraphRecorder.cc
0041     Utils/JInspector.cc
0042     Utils/JApplicationInspector.cc
0043     Utils/JBacktrace.cc
0044 
0045     Calibrations/JCalibration.cc
0046     Calibrations/JCalibrationFile.cc
0047     Calibrations/JResource.cc
0048 
0049     Geometry/JGeometryManager.cc
0050     Geometry/JGeometryXML.cc
0051 
0052     CLI/JBenchmarker.cc
0053     CLI/JSignalHandler.cc
0054     CLI/JMain.cc
0055     )
0056 
0057 #if (${USE_PODIO})
0058 #    list(APPEND JANA2_SOURCES
0059 #   )
0060 #endif()
0061 
0062 if (NOT ${USE_XERCES})
0063     message(STATUS "Skipping support for libJANA's JGeometryXML because USE_XERCES=Off")
0064 endif()
0065 
0066 add_library(jana2 OBJECT ${JANA2_SOURCES})
0067 
0068 find_package(Threads REQUIRED)
0069 set(THREADS_PREFER_PTHREAD_FLAG ON)
0070 target_link_libraries(jana2 PUBLIC ${CMAKE_DL_LIBS} Threads::Threads)
0071 target_link_libraries(jana2 PRIVATE VendoredTomlPlusPlus)
0072 target_link_libraries(jana2 PRIVATE VendoredMD5) # To pull in the header file
0073 
0074 if (${USE_PODIO})
0075     target_link_libraries(jana2 PUBLIC podio::podio podio::podioRootIO ${ROOT_LIBRARIES})
0076 elseif (${USE_ROOT})
0077     target_link_libraries(jana2 PUBLIC ${ROOT_LIBRARIES})
0078 endif()
0079 
0080 
0081 # Build static library
0082 add_library(jana2_static_lib STATIC $<TARGET_OBJECTS:jana2> $<TARGET_OBJECTS:VendoredMD5>)
0083 set_target_properties(jana2_static_lib PROPERTIES PREFIX "lib" OUTPUT_NAME "JANA")
0084 
0085 target_include_directories(jana2_static_lib PUBLIC $<INSTALL_INTERFACE:include>)
0086 target_link_libraries(jana2_static_lib PUBLIC ${CMAKE_DL_LIBS} Threads::Threads)
0087 target_link_libraries(jana2_static_lib PUBLIC VendoredTomlPlusPlus)
0088 
0089 if (${USE_PODIO})
0090     target_link_libraries(jana2_static_lib PUBLIC podio::podio podio::podioRootIO ${ROOT_LIBRARIES})
0091 elseif (${USE_ROOT})
0092     target_link_libraries(jana2_static_lib PUBLIC ${ROOT_LIBRARIES})
0093 endif()
0094 install(TARGETS jana2_static_lib EXPORT jana2_targets DESTINATION lib)
0095 
0096 
0097 # Build shared library
0098 add_library(jana2_shared_lib SHARED $<TARGET_OBJECTS:jana2> $<TARGET_OBJECTS:VendoredMD5>)
0099 set_target_properties(jana2_shared_lib PROPERTIES PREFIX "lib" OUTPUT_NAME "JANA")
0100 
0101 target_include_directories(jana2_shared_lib PUBLIC $<INSTALL_INTERFACE:include>)
0102 target_link_libraries(jana2_shared_lib PUBLIC ${CMAKE_DL_LIBS} Threads::Threads)
0103 target_link_libraries(jana2_shared_lib PUBLIC VendoredTomlPlusPlus)
0104 
0105 if (${USE_PODIO})
0106     target_link_libraries(jana2_shared_lib PUBLIC podio::podio podio::podioRootIO ${ROOT_LIBRARIES})
0107 elseif (${USE_ROOT})
0108     target_link_libraries(jana2_shared_lib PUBLIC ${ROOT_LIBRARIES})
0109 endif()
0110 
0111 install(TARGETS jana2_shared_lib EXPORT jana2_targets DESTINATION lib)
0112 set(INSTALL_RPATH_USE_LINK_PATH True)
0113 
0114 
0115 # Install "public" header files
0116 
0117 file(GLOB jana_headers "*.h*")
0118 file(GLOB jana_engine_headers "Engine/*.h*")
0119 file(GLOB jana_services_headers "Services/*.h*")
0120 file(GLOB jana_utils_headers "Utils/*.h*")
0121 file(GLOB jana_calibs_headers "Calibrations/*.h*")
0122 file(GLOB jana_geometry_headers "Geometry/*.h*")
0123 file(GLOB jana_cli_headers "CLI/*.h*")
0124 #file(GLOB jana_podio_headers "Podio/*.h*")
0125 file(GLOB jana_component_headers "Components/*.h*")
0126 file(GLOB jana_topology_headers "Topology/*.h*")
0127 
0128 install(FILES ${jana_headers} DESTINATION include/JANA)
0129 install(FILES ${jana_engine_headers} DESTINATION include/JANA/Engine)
0130 install(FILES ${jana_services_headers} DESTINATION include/JANA/Services)
0131 install(FILES ${jana_utils_headers} DESTINATION include/JANA/Utils)
0132 install(FILES ${jana_calibs_headers} DESTINATION include/JANA/Calibrations)
0133 install(FILES ${jana_geometry_headers} DESTINATION include/JANA/Geometry)
0134 install(FILES ${jana_cli_headers} DESTINATION include/JANA/CLI)
0135 install(FILES ${jana_component_headers} DESTINATION include/JANA/Components)
0136 install(FILES ${jana_topology_headers} DESTINATION include/JANA/Topology)
0137 
0138 #if (${USE_PODIO})
0139 #    install(FILES ${jana_podio_headers} DESTINATION include/JANA/Podio)
0140 #endif()
0141 
0142 
0143 
0144 
0145 
0146