ADD_LIBRARY(JFJochImagePreprocessing STATIC ImagePreprocessor.cpp ImagePreprocessor.h ImagePreprocessorCPU.cpp ImagePreprocessorCPU.h ImagePreprocessorBuffer.cpp ImagePreprocessorBuffer.h) TARGET_LINK_LIBRARIES(JFJochImagePreprocessing JFJochCommon) IF (JFJOCH_CUDA_AVAILABLE) TARGET_SOURCES(JFJochImagePreprocessing PRIVATE ../indexing/CUDAMemHelpers.h ImagePreprocessorGPU.cu ImagePreprocessorGPU.h ImagePreprocessorBufferGPU.cu ImagePreprocessorBufferGPU.h) ENDIF()