ADD_EXECUTABLE(jfjoch_test
        DiffractionExperimentTest.cpp
        RawToConvertedGeometryTest.cpp
        ../common/RawToConvertedGeometry.h
        ../common/DiffractionExperiment.h
        FPGAUnitTest.h
        FPGAIntegrationTest.cpp
        StrongPixelSetTest.cpp
        ZSTDCompressorTest.cpp
        FrameTransformationTest.cpp
        HDF5WritingTest.cpp PedestalCalcTest.cpp
        ZMQImagePusherTest.cpp StreamWriterTest.cpp
        CoordTest.cpp JFJochStateMachineTest.cpp
        JFJochReceiverIntegrationTest.cpp
        AcquisitionCountersTest.cpp
        IndexingUnitTest.cpp
        ThreadSafeFIFOSetTest.cpp
        FPGANetworkTest.cpp
        JFPedestalTest.cpp
        JFCalibrationTest.cpp
        AzimuthalIntegrationTest.cpp
        StatusVectorTest.cpp
        CBORTest.cpp
        DetectorGeometryTest.cpp JFJochBrokerParserTest.cpp DetectorSetupTest.cpp DiffractionGeometryTest.cpp
        FPGASpotFindingUnitTest.cpp
        PreviewCounterTest.cpp
        FPGAFrameGeneratorTest.cpp
        FPGAHostWriterTest.cpp
        DiffractionSpotTest.cpp
        TIFFTest.cpp
        JFJochReceiverProcessingTest.cpp
        JPEGTest.cpp
        HistogramTest.cpp
        FPGAEigerReorderTest.cpp
        ROIMapTest.cpp
        LossyFilterTest.cpp
        SendBufferTest.cpp
        PixelMaskTest.cpp
        RegressionTest.cpp
)

target_link_libraries(jfjoch_test Catch2WithMain JFJochBroker JFJochReceiver JFJochWriter JFJochImageAnalysis JFJochCommon JFJochHLSSimulation JFJochPreview)
target_include_directories(jfjoch_test PRIVATE .)
