<!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 bgcolor="#ffffff" text="#000000">
Here is the CMakeLists.txt from an example.<br>
<br>
-----------------<br>
PROJECT(Medical4)<br>
<br>
cmake_minimum_required(VERSION 2.8)<br>
<br>
FIND_PACKAGE(VTK)<br>
IF(VTK_FOUND)<br>
&nbsp;&nbsp;&nbsp; INCLUDE( ${USE_VTK_FILE} )<br>
ENDIF(VTK_FOUND)<br>
<br>
INCLUDE_DIRECTORIES(<br>
&nbsp;&nbsp;&nbsp; ${Medical4_SOURCE_DIR}<br>
)<br>
<br>
ADD_EXECUTABLE(Medical4 main.cpp)<br>
TARGET_LINK_LIBRARIES(Medical4<br>
&nbsp;&nbsp;&nbsp; vtkRendering vtkGraphics vtkHybrid<br>
&nbsp;&nbsp;&nbsp; vtkImaging vtkIO vtkFiltering vtkCommon<br>
&nbsp;&nbsp;&nbsp; vtkVolumeRendering<br>
)<br>
-----------------<br>
<br>
You may need to rebuild you app from zero if you want to change from
win32 to x64.<br>
<br>
Cyrille<br>
<br>
<br>
Le 21/07/2010 16:25, Michael Xanadu a &eacute;crit&nbsp;:
<blockquote
 cite="mid:AANLkTiksJ-OwmAQqMtMUvdFu8iAxV_XHVF7V80eglUEB@mail.gmail.com"
 type="cite">Hi Dave,<br>
  <br>
thank you for your help. I did what you told me without success. <br>
I replaced <br>
  <br>
&nbsp;&nbsp; FIND_PACKAGE(VTK)<br>
  <br>
with<br>
  <br>
&nbsp;&nbsp; FIND_PACKAGE(VTK REQUIRED)<br>
&nbsp;<br>
No success. Then I replaced the whole code block. No success. Then I
used a codeblock found in the internet:<br>
  <br>
&nbsp;&nbsp; FIND_PACKAGE(VTK REQUIRED)<br>
&nbsp;&nbsp; INCLUDE(${VTK_USE_FILE})<br>
  <br>
Always the same story. I can't set the path to VTK bin in CMake GUI
&amp; CMake always links the (wrong) 32lib.<br>
There are VTKConfig.cmake + useVTK.cmake in the build directory
"c:\work\libs\vtk_bin_5.6.0_x64" but not in the build directory of my
own apllication. Do you have any further suggestions for me?<br>
  <br>
With best regards,<br>
Michael<br>
  <br>
  <br>
  <br>
  <div class="gmail_quote">2010/7/21 Dave Partyka <span dir="ltr">&lt;<a
 moz-do-not-send="true" href="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</a>&gt;</span><br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You
shouldn't need to set a VTK_DIR environment variable. Also you can
simplify your logic slightly by using FIND_PACKAGE(VTK REQUIRED)
instead.
    <div><br>
    </div>
    <div>&nbsp;That said, the only thing you should have to do is set
VTK_DIR in the cmake gui to&nbsp;<span
 style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">C:\WORK\LIBS\VTK_BIN_5.6.0_x64
and that should be it. Are there definately VTKConfig.cmake and
UseVTK.cmake files in the root of your build directory?</span><br>
    <br>
    </div>
  </blockquote>
  </div>
  <br>
  <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 VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
  </pre>
</blockquote>
<br>
</body>
</html>