[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/insight-users/attachments/20140928/3f0c9ae8/attachment.html>
More information about the Insight-users
mailing list