[Insight-users] itkvtkglue - cmake can't include (${ItkVtkGlue_USE_FILE})

emreturkoz emreturkoz at gmail.com
Sun Jul 31 12:59:01 EDT 2011


I wanted to make the example which combines ITK with VTK called
IO/ImageFileReader from wiki examples. 

I downloaded itkvtkglue and configured the project using cmake and built it
using visual studio 2010. 

but i can't use it when i try to configure the example given. Even though
cmake finds the ItkVtkGlue_DIR by itself, it gives the error that he
couldn't include the necessary file. Fails to
include(${ItkVtkGlue_USE_FILE})

the error and file content are given below.


CMake Error at CMakeLists.txt:6 (include):
  include could not find load file:

    C:/Users/Emre


CMakeLists.txt looks like this:
cmake_minimum_required(VERSION 2.6)
 
project(ImageFileReader)
 
find_package(ItkVtkGlue REQUIRED)
include(${ItkVtkGlue_USE_FILE})
 
add_executable(ImageFileReader ImageFileReader.cxx)
target_link_libraries(ImageFileReader
  ItkVtkGlue  ${VTK_LIBRARIES} ${ITK_LIBRARIES})


--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/itkvtkglue-cmake-can-t-include-ItkVtkGlue-USE-FILE-tp6638608p6638608.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list