<div dir="ltr"><div><div><div><div><div>Dear all,<br><br></div>I am trying to develop a code in QT using ITK but I am having some problems.<br></div>I
am using CMake to add the files to the code, as I would do in Eclipse,
with the proper changes (bellow), but I'm getting this error message:<br>
<br>/usr/local/include/InsightToolkit/BasicFilters/itkCannyEdgeDetectionImageFilter.h:20: error: itkImageToImageFilter.h: No such file or directory<br><br></div>When I open the .h file, some libraries are highlighted with the same error but some don't. My CMakeLists.txt is this:<br>
<br>project(IntegracaoITK)<br><br>cmake_minimum_required(VERSION 2.4.0)<br><br>find_package(Qt4 REQUIRED)<br><br>SET(qtproject_UIS mainwindow.ui)<br><br>QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS})<br><br>find_package(ITK REQUIRED)<br>
<br>include_directories(${CMAKE_CURRENT_BINARY_DIR})<br><br>add_executable(IntegracaoITK ${qtproject_SRCS} ${qtproject_UIS_H} main.cpp)<br>TARGET_LINK_LIBRARIES(IntegracaoITK ITKCommon ITKIO ITKBasicFilters ITKAlgorithms ITKNumerics ITKSpatialObjetcs ITKReview ITKPatented ITKUtilities ITKgdcm ${QT_LIBRARIES})<br>
<br></div>
I am pretty sure this is a very simple question, but I have no experience at all using CMake.<br><br></div>Thank you all in advance,<br clear="all"><br>-- <br>Gabriel Santiago<br><br>~"As long as I live so long do I learn"~<div>
Ramakhrishna</div>
</div>