Hi Dave,<br><br>thank you for your help. I did what you told me without success. <br>I replaced <br><br> FIND_PACKAGE(VTK)<br><br>with<br><br> FIND_PACKAGE(VTK REQUIRED)<br> <br>No success. Then I replaced the whole code block. No success. Then I used a codeblock found in the internet:<br>
<br> FIND_PACKAGE(VTK REQUIRED)<br> INCLUDE(${VTK_USE_FILE})<br><br>Always the same story. I can't set the path to VTK bin in CMake GUI & 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"><<a href="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); 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> That said, the only thing you should have to do is set VTK_DIR in the cmake gui to <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>