Build 如何在windows上将FFTW与cmake一起使用?
我正在使用CMake为Visual Studio构建项目。我在CMakeList.txt中使用了这一行来包括FFTW3Build 如何在windows上将FFTW与cmake一起使用?,build,cmake,fftw,Build,Cmake,Fftw,我正在使用CMake为Visual Studio构建项目。我在CMakeList.txt中使用了这一行来包括FFTW3 find_library(FFTW_LIBRARY NAMES fftw3 fftw) set(FFTW_LIBRARIES "${FFTW_LIBRARY}") 我从CMake得到了这个错误: CMake Error: The following variables are used in this project, but they are set to NOT
find_library(FFTW_LIBRARY
NAMES fftw3 fftw)
set(FFTW_LIBRARIES "${FFTW_LIBRARY}")
我从CMake得到了这个错误:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FFTW_LIBRARY
linked by target "windows_SHT" in directory C:/...
我想我没有正确安装fftw。我在文件夹中找到了.dll.lib和.h文件,但我不知道如何向CMake解释库的位置。指定要使用的其他路径 见: 您需要包括自定义FFTW安装的路径 当您使用find_file来定位头文件时,需要使用类似的技术