Building a CUDA 8.0 project with cuFFT callbacks requires using the statically linked cuFFT library and compile the code as relocatable device code using (-dc compiler option). I've been unable to make this happen with CMake v3.7.0 using CUFFT_STATIC_LIBRARY, etc.. Anyone been able to build such a project with CMake?
Relevant expressions in my project CMakeLists.txt for the dynamically linked cuFFT library:
find_package(CUDA REQUIRED)
list(APPEND CUDA_DEV_LIBRARIES
${CUDA_cufft_LIBRARY})
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} --std=c++11")
cuda_add_executable(${PROJECT_NAME} ${CPP_SRCS})
link_directories(${CUDA_LIBRARY_DIRS})
target_link_libraries(${PROJECT_NAME} ${CUDA_LIBRARIES} ${CUDA_DEV_LIBRARIES})