All checks were successful
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 10m50s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 11m58s
Build Packages / Generate python client (push) Successful in 32s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 12m45s
Build Packages / Build documentation (push) Successful in 40s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (ubuntu2204) (push) Successful in 13m3s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 13m10s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 13m26s
Build Packages / build:rpm (rocky8) (push) Successful in 13m18s
Build Packages / build:rpm (rocky9) (push) Successful in 13m47s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 6m59s
Build Packages / Unit tests (push) Successful in 52m47s
141 lines
4.4 KiB
CMake
141 lines
4.4 KiB
CMake
# git header
|
|
# the commit's SHA1, and whether the building workspace was dirty or not
|
|
|
|
FIND_PACKAGE(Git)
|
|
|
|
EXECUTE_PROCESS(COMMAND
|
|
"${GIT_EXECUTABLE}" describe --match=NeVeRmAtCh --always --abbrev=8
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
OUTPUT_VARIABLE GIT_SHA1
|
|
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
# the date of the commit
|
|
EXECUTE_PROCESS(COMMAND
|
|
"${GIT_EXECUTABLE}" log -1 --format=%ad --date=local
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
OUTPUT_VARIABLE GIT_DATE
|
|
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
set (THREADS_PREFER_PTHREAD_FLAG ON)
|
|
find_package (Threads REQUIRED)
|
|
|
|
FILE(STRINGS ../VERSION PACKAGE_VERSION)
|
|
MESSAGE(STATUS "Jungfraujoch git SHA1: ${GIT_SHA1}")
|
|
MESSAGE(STATUS "Jungfraujoch git date: ${GIT_DATE}")
|
|
MESSAGE(STATUS "Jungfraujoch version: ${PACKAGE_VERSION}")
|
|
|
|
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/GitInfo.cpp.in" "${CMAKE_CURRENT_BINARY_DIR}/GitInfo.cpp" @ONLY)
|
|
|
|
ADD_LIBRARY(JFJochLogger STATIC
|
|
Logger.cpp Logger.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/GitInfo.cpp GitInfo.h
|
|
)
|
|
|
|
ADD_LIBRARY(JFJochZMQ STATIC ZMQWrappers.cpp ZMQWrappers.h)
|
|
|
|
ADD_LIBRARY(JFJochCommon STATIC
|
|
Coord.cpp Coord.h
|
|
DiffractionExperiment.cpp DiffractionExperiment.h
|
|
RawToConvertedGeometry.h
|
|
JFJochException.h
|
|
Definitions.h
|
|
ThreadSafeFIFO.h
|
|
DiffractionSpot.cpp DiffractionSpot.h
|
|
StatusVector.h
|
|
SpotToSave.h
|
|
NetworkAddressConvert.h NetworkAddressConvert.cpp
|
|
DetectorGeometry.h
|
|
DetectorModuleGeometry.cpp DetectorModuleGeometry.h
|
|
DetectorSetup.h DetectorSetup.cpp ZeroCopyReturnValue.h Histogram.h DiffractionGeometry.h
|
|
CUDAWrapper.cpp CUDAWrapper.h
|
|
NUMAHWPolicy.cpp NUMAHWPolicy.h
|
|
ADUHistogram.cpp ADUHistogram.h
|
|
RawToConvertedGeometryCore.h
|
|
Plot.h
|
|
../fpga/pcie_driver/jfjoch_fpga.h
|
|
DatasetSettings.cpp DatasetSettings.h
|
|
ROIMap.cpp ROIMap.h
|
|
ROIElement.cpp ROIElement.h
|
|
ROICircle.cpp ROICircle.h
|
|
ROIBox.cpp ROIBox.h
|
|
ImageBuffer.cpp ImageBuffer.h
|
|
time_utc.h
|
|
PixelMask.cpp PixelMask.h
|
|
InstrumentMetadata.cpp InstrumentMetadata.h
|
|
ImageFormatSettings.cpp
|
|
ImageFormatSettings.h
|
|
DetectorSettings.cpp
|
|
DetectorSettings.h
|
|
AzimuthalIntegrationSettings.cpp
|
|
AzimuthalIntegrationSettings.h
|
|
AzimuthalIntegrationProfile.h
|
|
AzimuthalIntegrationProfile.cpp
|
|
AzimuthalIntegration.h
|
|
AzimuthalIntegration.cpp
|
|
CheckPath.h
|
|
AutoIncrVector.h
|
|
ModuleSummation.cpp
|
|
ModuleSummation.h
|
|
ROIDefinition.cpp
|
|
ROIDefinition.h
|
|
ZeroCopyReturnValue.cpp
|
|
ColorScale.cpp ColorScale.h
|
|
FileWriterSettings.cpp
|
|
FileWriterSettings.h
|
|
MovingAverage.cpp
|
|
MovingAverage.h
|
|
DiffractionGeometry.cpp
|
|
ROIAzimuthal.cpp
|
|
ROIAzimuthal.h
|
|
print_license.h
|
|
DetectorGeometryModular.cpp
|
|
DetectorGeometryModular.h
|
|
DetectorGeometryFixed.cpp
|
|
DetectorGeometryFixed.h
|
|
GridScanSettings.cpp
|
|
GridScanSettings.h
|
|
JFJochMessages.h
|
|
GoniometerAxis.cpp
|
|
GoniometerAxis.h
|
|
CompressedImage.cpp
|
|
CompressedImage.h
|
|
Reflection.h
|
|
MultiLinePlot.cpp
|
|
MultiLinePlot.h
|
|
IndexingSettings.cpp
|
|
IndexingSettings.h
|
|
CrystalLattice.cpp
|
|
CrystalLattice.h
|
|
ScanResult.cpp
|
|
ScanResult.h
|
|
ScanResultGenerator.cpp
|
|
ScanResultGenerator.h
|
|
BraggIntegrationSettings.cpp
|
|
BraggIntegrationSettings.h
|
|
SpotToSave.cpp
|
|
XrayFluorescenceSpectrum.cpp
|
|
XrayFluorescenceSpectrum.h
|
|
ResolutionShells.cpp
|
|
ResolutionShells.h
|
|
DarkMaskSettings.cpp
|
|
DarkMaskSettings.h
|
|
)
|
|
|
|
TARGET_LINK_LIBRARIES(JFJochCommon JFJochLogger Compression JFCalibration gemmi Threads::Threads -lrt )
|
|
|
|
TARGET_LINK_LIBRARIES(JFJochZMQ "$<BUILD_INTERFACE:libzmq-static>")
|
|
|
|
IF (JFJOCH_CUDA_AVAILABLE)
|
|
TARGET_SOURCES(JFJochCommon PRIVATE CUDAWrapper.cu )
|
|
TARGET_LINK_LIBRARIES(JFJochCommon CUDA::cudart_static
|
|
${CMAKE_DL_LIBS} rt)
|
|
ENDIF()
|
|
|
|
IF(HAS_NUMAIF AND HAS_NUMA_H AND NUMA_LIBRARY)
|
|
TARGET_COMPILE_DEFINITIONS(JFJochCommon PUBLIC JFJOCH_USE_NUMA)
|
|
TARGET_LINK_LIBRARIES(JFJochCommon ${NUMA_LIBRARY})
|
|
MESSAGE(STATUS "NUMA memory/CPU pinning enabled")
|
|
ELSE()
|
|
MESSAGE(WARNING "NUMA memory/CPU pinning disabled")
|
|
ENDIF()
|