<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>On 04/21/2017 03:40 PM, aishwarya selvaraj wrote:<br>
</p>
<blockquote
cite="mid:CACWTKSryDfmtPLnLZEydWz4tiNrKit5rFLsCg+UOvHeUtd4nfw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="color:rgb(0,0,0)" class="gmail_default">add_library(fftw
STATIC IMPORTED)<br>
</div>
</div>
</blockquote>
[...]<br>
<blockquote
cite="mid:CACWTKSryDfmtPLnLZEydWz4tiNrKit5rFLsCg+UOvHeUtd4nfw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="color:rgb(0,0,0)" class="gmail_default">TARGET_LINK_LIBRARIES(prose
fftw )<br>
</div>
</div>
</blockquote>
[...]<br>
<blockquote
cite="mid:CACWTKSryDfmtPLnLZEydWz4tiNrKit5rFLsCg+UOvHeUtd4nfw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="color:rgb(0,0,0)" class="gmail_default">make[2]: ***
No rule to make target `fftw-NOTFOUND', needed by `prose'.
Stop.<br>
</div>
</div>
</blockquote>
<br>
You are creating an IMPORTED target "fftw" but you aren't populating
its IMPORTED_LOCATION [1] (or IMPORTED_LOCATION_<CONFIG> [2])
target property.<br>
Without it CMake does not know what on disk library file to link to.<br>
<br>
You can set target properties with set_property() or
set_target_properties().<br>
<br>
Nils<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="https://cmake.org/cmake/help/latest/prop_tgt/IMPORTED_LOCATION.html">https://cmake.org/cmake/help/latest/prop_tgt/IMPORTED_LOCATION.html</a><br>
[2]
<a class="moz-txt-link-freetext" href="https://cmake.org/cmake/help/latest/prop_tgt/IMPORTED_LOCATION_CONFIG.html">https://cmake.org/cmake/help/latest/prop_tgt/IMPORTED_LOCATION_CONFIG.html</a><br>
</body>
</html>