[ITK] [ITK-users] make: path to ITK build unknown
donelron
donelron at web.de
Tue Jul 1 17:09:24 EDT 2014
My CMakeLists.txt looks like:
-------------------------------------------------------------------------------------------------
cmake_minimum_required(VERSION 2.4)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
SET(DITK_DIR /home/ron/vtk_itk/ITK)
project(BinaryThresholdFilter)
include_regular_expression("^.*$")
# Find ITK.
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})
add_executable(BinaryThresholdImageFilter BinaryThresholdImageFilter.cxx )
target_link_libraries(BinaryThresholdImageFilter ${ITK_LIBRARIES})
if(BUILD_TESTING)
add_subdirectory(test)
endif()
-------------------------------------------------------------------------------------------------
I downloaded and compiled the code you mentioned with
cmake ../BinaryThresholding/
make
and the result here is similar as with the project I was talking about in my
initial post:
fatal error: itkImageFileReader.h: No such file or directory
compilation terminated.
make[2]: ***
[CMakeFiles/BinaryThresholdImageFilter.dir/BinaryThresholdImageFilter.o]
Error 1
make[1]: *** [CMakeFiles/BinaryThresholdImageFilter.dir/all] Error 2
make: *** [all] Error 2
However, if I
cmake -DITK_DIR=/home/ron/vtk_itk/ITK ../BinaryThresholding/
make
it successfully compiles.
--
View this message in context: http://itk-users.7.n7.nabble.com/make-path-to-ITK-build-unknown-tp34171p34182.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
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