ADD_LIBRARY(JFJochSpotFinding STATIC
        ImageSpotFinderCPU.cpp
        ImageSpotFinderCPU.h
        AdaptiveSpotFinderCPU.cpp
        AdaptiveSpotFinderCPU.h
        AdaptiveThreshold.h
        SpotUtils.cpp
        SpotUtils.h
        SpotFindingSettings.h
        StrongPixelSet.cpp
        StrongPixelSet.h
        DetModuleSpotFinder_cpu.h
        ImageSpotFinder.cpp
        ImageSpotFinder.h
)

TARGET_LINK_LIBRARIES(JFJochSpotFinding JFJochCommon)

IF (JFJOCH_CUDA_AVAILABLE)
    TARGET_SOURCES(JFJochSpotFinding PRIVATE
            SpotExtractorGPU.cu SpotExtractorGPU.h
            ImageSpotFinderGPU.cu ImageSpotFinderGPU.h
            AdaptiveSpotFinderGPU.cu AdaptiveSpotFinderGPU.h)
ENDIF()