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

TARGET_LINK_LIBRARIES(JFJochSpotFinding JFJochCommon)

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