Did you build your app in a completely empty build directory?<br><br><div class="gmail_quote">On Thu, Jan 5, 2012 at 3:06 PM, Hui Tang <span dir="ltr">&lt;<a href="mailto:tanghui.seu@gmail.com">tanghui.seu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">yes it is in my own application:)<br><br>Here is my cMake, thanks:)<br><br>cmake_minimum_required(VERSION 2.4)<br>
if(COMMAND CMAKE_POLICY)<br>  cmake_policy(SET CMP0003 NEW)<br>endif()<br><br>project(PSRegional)<br><br>find_package(ITK REQUIRED)<br>
if(ITK_FOUND)<br>  include(${ITK_USE_FILE})<br>endif()<br><br>find_package(VTK REQUIRED)<br>if(VTK_FOUND)<br>  include(${VTK_USE_FILE})<br>endif()<br><br>IF (WIN32)<br>  INCLUDE_DIRECTORIES(&quot;E:/packages/boost_1_47_0/boost_1_47_0/&quot;)<br>

  LINK_DIRECTORIES(&quot;E:/packages/lib64/&quot;)<br>ENDIF (WIN32)<br>include_directories(${CMAKE_CURRENT_SOURCE_DIR})<br><br>set(LevelSetsSourceList<br>  PSRegional<br>)<br><br>foreach( var ${LevelSetsSourceList} )<br>
  add_executable(${var} ${var}.cxx)<br>
  target_link_libraries(${var} ${ITK_LIBRARIES} <br>  vtkImaging<br>    vtkRendering<br>    vtkHybrid)<br>  endforeach()<div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On Thu, Jan 5, 2012 at 8:38 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Is this in your own application? If so, can you send me your CMakeLists.txt file?<div><div><br>
<br><br><div class="gmail_quote">On Thu, Jan 5, 2012 at 2:35 PM, Hui Tang <span dir="ltr">&lt;<a href="mailto:tanghui.seu@gmail.com" target="_blank">tanghui.seu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I got linking error LINK : fatal error LNK1181: cannot open input file &#39;itksys.lib&#39;, but i do not have this if I set BUILD_TESTING off when I build ITK library<div>


<div></div><div><br><br><div class="gmail_quote">On Thu, Jan 5, 2012 at 7:58 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">What error do you get when you build with BUILD_TESTING ON?<div><div><br><br><div class="gmail_quote">



On Thu, Jan 5, 2012 at 1:55 PM, Hui Tang <span dir="ltr">&lt;<a href="mailto:tanghui.seu@gmail.com" target="_blank">tanghui.seu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">hihi thanks for your reply:) yes I used this, the problem is should I set BUILD_TESTING on when I build ITK<div>




<div></div><div><br><br><div class="gmail_quote">On Thu, Jan 5, 2012 at 7:32 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">What problem do you see? For itkv4 you should use ${ITK_LIBRARIES} and list specific libraries.<br>




<br><div class="gmail_quote">
<div><div>On Thu, Jan 5, 2012 at 12:38 PM, Hui Tang <span dir="ltr">&lt;<a href="mailto:tanghui.seu@gmail.com" target="_blank">tanghui.seu@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>I found that iktsys.libs is not found when I compile my own project if I set BUILD_TESTING on when I build ITK , but if I set BUILD_TESTING off, I do not get this problem, I can build my own project.<br>






<br>May I ask what causes this strange problem? I am using the  ITK4 distributed in December.<br>
<br>It is not an urgent question, as now I can build my own project well.<br><br>Best,<br><font color="#888888"><br>Hui<br>
</font><br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>