[ITK] [ITK-users] build itkvtkglue

Lianli Liu llliu at umich.edu
Sun Sep 28 18:18:40 EDT 2014


Hi all,

I want to use vtk with itk and I set the BUILD_SHARED_LIBS option as ON. My
cmake file looks like this

# This is the root ITK CMakeLists file.
cmake_minimum_required(VERSION 2.4)
if(COMMAND CMAKE_POLICY)
  cmake_policy(SET CMP0003 NEW)
endif()


# This project is designed to be built outside the Insight source tree.
project(vtiPCA)

# Find ITK.
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

if (ITKVtkGlue_LOADED)
  find_package(VTK REQUIRED)
  include(${VTK_USE_FILE})
else()
  find_package(ItkVtkGlue REQUIRED)
  include(${ItkVtkGlue_USE_FILE})
  set(Glue ItkVtkGlue)
endif()

add_executable(vtiPCA vtiPCA.cxx )

target_link_libraries(vtiPCA ${ITK_LIBRARIES})

But I receivde the error saying

By not providing "FindItkVtkGlue.cmake" in CMAKE_MODULE_PATH this project
   has asked CMake to find a package configuration file provided by
   "ItkVtkGlue", but CMake did not find one.
.

Can anyone help with this? Thanks!

Best,
Lianli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140928/3f0c9ae8/attachment-0002.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list