[ITK-users] build itkvtkglue

Bill Lorensen bill.lorensen at gmail.com
Sun Sep 28 22:01:57 EDT 2014


Remove these lines:
else()
  find_package(ItkVtkGlue REQUIRED)
  include(${ItkVtkGlue_USE_FILE})
  set(Glue ItkVtkGlue)

On Sun, Sep 28, 2014 at 6:18 PM, Lianli Liu <llliu at umich.edu> wrote:
> 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
>
> _____________________________________
> 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
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-users mailing list