Files
leonarski_fandClaude Opus 5.5 4c322b3e39 jfjoch_viewer: list every format it opens in the file browser and the open dialog
The file browser listed only *_master.h5, *_process.h5 and *.cbf, and the open
dialog had no filter covering frames numbered in their extension, so a marCCD or
ADSC sweep written as name.001 / name.0001 was invisible in both, as were .cbf.gz,
.mccd, .osc, .sfrm, .nxs, .cxi and .xtc in the browser.

One list of wildcards (reader/FileNamePatterns.h) now serves both: the HDF5
masters and processing results, .nxs, .cxi, .xtc, the raw frame extensions and
frame numbers of three to five digits. The open dialog offers it first as
"All supported", plus any .h5 and .geom for the files of an XFEL run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HVeDQrPqZ52Tp6rzzZGxf3
2026-11-20 02:41:11 +01:00

67 lines
2.1 KiB
CMake

# SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
# SPDX-License-Identifier: GPL-3.0-only
ADD_LIBRARY(JFJochReader STATIC
JFJochReader.cpp JFJochReader.h
JFJochHDF5Reader.cpp
JFJochHDF5Reader.h
JFJochMultiReader.cpp
JFJochMultiReader.h
SweepLayout.cpp
SweepLayout.h
ImgCIF.cpp
ImgCIF.h
MiniCBF.cpp
MiniCBF.h
JFJochCBFReader.cpp
JFJochCBFReader.h
MarCCD.cpp
MarCCD.h
JFJochMarCCDReader.cpp
JFJochMarCCDReader.h
CrystFELGeometry.cpp
CrystFELGeometry.h
JFJochXFELReader.cpp
JFJochXFELReader.h
DetectorLayout.h
SMV.cpp
SMV.h
JFJochSMVReader.cpp
JFJochSMVReader.h
XTC.cpp
XTC.h
JFJochXTCReader.cpp
JFJochXTCReader.h
NXmxModules.cpp
NXmxModules.h
SFRM.cpp
SFRM.h
JFJochSFRMReader.cpp
JFJochSFRMReader.h
FileNamePatterns.h
HDF5ImageLocator.cpp
JFJochStartMessageReader.cpp
JFJochStartMessageReader.h
JFJochImageBufferReader.cpp
JFJochImageBufferReader.h
HDF5ImageLocator.h
HDF5ImageSource.cpp
HDF5ImageSource.h
HDF5MetadataSource.cpp
HDF5MetadataSource.h
JFJochReaderImage.cpp
JFJochReaderImage.h
JFJochReaderDataset.cpp
JFJochReaderDataset.h
JFJochReaderSpots.h
)
# NB: JFJochHttpReader (the viewer's live-broker HTTP client) lives in viewer/ and links Mbed TLS;
# it is deliberately NOT part of this always-built library, so the broker/writer never pull in a
# TLS stack.
# tiff: the marCCD reader's files are ordinary uncompressed TIFFs, so libtiff - which the build
# already fetches for JFJochPreview in every mode - reads the pixels and there is no new dependency.
TARGET_LINK_LIBRARIES(JFJochReader JFJochImageAnalysis JFJochAPI JFJochCommon JFJochZMQ JFJochLogger
JFJochHDF5Wrappers CBORStream2FrameSerialize tiff ZLIB::ZLIB
${CMAKE_DL_LIBS})