<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
You should be able to do something like:<br>
<br>
find_library(FFTW_LIBRARY<br>
&nbsp;&nbsp;&nbsp; NAMES fftw3 fftw)<br>
set(FFTW_LIBRARIES "${FFTW_LIBRARY}")<br>
if(UNIX AND NOT WIN32)<br>
&nbsp;&nbsp;&nbsp; find_library(FFTW_libm_LIBRARY<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAMES m)<br>
&nbsp;&nbsp;&nbsp; list(APPEND FFTW_LIBRARIES "${FFTW_libm_LIBRARY}")<br>
endif()<br>
<br>
target_link_libraries(yourtargetname ${FFTW_LIBRARIES})<br>
<br>
Ryan<br>
<br>
<br>
On 01/06/2010 05:33 AM, Lucian Goron wrote:
<blockquote
 cite="mid:298fcefe1001060333o61f20d6bj751460d7fe1e4721@mail.gmail.com"
 type="cite">hello, <br>
  <br>
I use the ubuntu 9.04 jaunty jackalope along with other open source C++
libraries.<br>
Recently I discovered the<i style="font-family: courier new,monospace;">
fftw-3.2.2</i> libraries, but trying linking it is harder then I
thought.<br>
Basically, I have to link these libraries <i
 style="font-family: courier new,monospace;">-lfftw3 -lm </i>but I do
not know how ?<br>
  <br>
Has somebody encountered this problem before ? <i
 style="font-family: courier new,monospace;"><font size="2"><br>
  </font></i><span style="font-family: arial,helvetica,sans-serif;"><font
 size="2"><br>
Thank you in advance.</font></span><i
 style="font-family: courier new,monospace;"><font size="2"><br>
  </font></i>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

<a class="moz-txt-link-abbreviated" href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a>
<a class="moz-txt-link-freetext" href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a>
Internal VRAC/HCI Site: <a class="moz-txt-link-freetext" href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a></pre>
</body>
</html>