<font size="2"><font face="verdana,sans-serif">Which version of ITK are you using? 3.20 or 4.git? I don&#39;t think ItkVtkGlue is a separate package in either.<br></font></font><br><div>In 3.20, it is located in &quot;D:\SDK\ITK-3.20.0-VS2010\Wrapping\WrapITK\ExternalProjects\ItkVtkGlue&quot;. When you &quot;install it&quot;, a few source code files are copied to Code\BasicFilters, so you may as well copy them yourself. Then you just need to include ITK and VTK in your CMakeLists in the usual way.</div>

<div><br><div class="gmail_quote">On Sun, Jul 31, 2011 at 18:59, emreturkoz <span dir="ltr">&lt;<a href="mailto:emreturkoz@gmail.com" target="_blank">emreturkoz@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I wanted to make the example which combines ITK with VTK called<br>
IO/ImageFileReader from wiki examples.<br>
<br>
I downloaded itkvtkglue and configured the project using cmake and built it<br>
using visual studio 2010.<br>
<br>
but i can&#39;t use it when i try to configure the example given. Even though<br>
cmake finds the ItkVtkGlue_DIR by itself, it gives the error that he<br>
couldn&#39;t include the necessary file. Fails to<br>
include(${ItkVtkGlue_USE_FILE})<br>
<br>
the error and file content are given below.<br>
<br>
<br>
CMake Error at CMakeLists.txt:6 (include):<br>
  include could not find load file:<br>
<br>
    C:/Users/Emre<br>
<br>
<br>
CMakeLists.txt looks like this:<br>
cmake_minimum_required(VERSION 2.6)<br>
<br>
project(ImageFileReader)<br>
<br>
find_package(ItkVtkGlue REQUIRED)<br>
include(${ItkVtkGlue_USE_FILE})<br>
<br>
add_executable(ImageFileReader ImageFileReader.cxx)<br>
target_link_libraries(ImageFileReader<br>
  ItkVtkGlue  ${VTK_LIBRARIES} ${ITK_LIBRARIES})<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/itkvtkglue-cmake-can-t-include-ItkVtkGlue-USE-FILE-tp6638608p6638608.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/itkvtkglue-cmake-can-t-include-ItkVtkGlue-USE-FILE-tp6638608p6638608.html</a><br>



Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<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>
</blockquote></div><br>
</div>