Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Build 如何在windows上将FFTW与cmake一起使用?_Build_Cmake_Fftw - Fatal编程技术网

Build 如何在windows上将FFTW与cmake一起使用?

Build 如何在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

我正在使用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 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来定位头文件时,需要使用类似的技术