[CMake] fftw library in cmake
aishwarya selvaraj
aishwaryaselvaraj1708 at gmail.com
Fri Apr 21 09:40:59 EDT 2017
Hi all ,
Below is my CMakelist.txt. I'm getting an error as mentioned below .
I'm not to rectify it .
Could anyone help me out here please ?
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(PROSE)
ExternalProject_Add(project_fftw
#GIT_REPOSITORY https://github.com/FFTW/fftw3
URL "http://www.fftw.org/fftw-3.3.2.tar.gz"
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/fftw
CONFIGURE_COMMAND ""
#--Build step-----------------
BUILD_COMMAND ""
#--Install step---------------
UPDATE_COMMAND "" # Skip annoying updates for every build
INSTALL_COMMAND ""
)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/fftw/src/project_fftw/api)
ExternalProject_Get_Property(project_fftw install_dir)
add_library(fftw STATIC IMPORTED)
add_dependencies(fftw project_fftw)
ADD_EXECUTABLE(prose ${PROJECT_SOURCE_DIR}/src/prose.cpp)
TARGET_LINK_LIBRARIES(prose fftw )
ERROR:
Scanning dependencies of target prose
[100%] Building CXX object CMakeFiles/prose.dir/src/prose.cpp.o
make[2]: *** No rule to make target `fftw-NOTFOUND', needed by `prose'.
Stop.
make[1]: *** [CMakeFiles/prose.dir/all] Error 2
make: *** [all] Error 2
Where Am I going wrong ?
--
Regards,
Aishwarya Selvaraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170421/a8b4212e/attachment.html>
More information about the CMake
mailing list