<div dir="ltr">The easiest way is to use a CMakeLists.txt project file instead of QT's .pro project file. QtCreator has support for using a CMakeLists.txt file instead of a .pro file:<div><br></div><div><a href="http://qt-project.org/doc/qt-5.0/qtdoc/cmake-manual.html">http://qt-project.org/doc/qt-5.0/qtdoc/cmake-manual.html</a><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 7:04 AM, Barbara Post <span dir="ltr"><<a href="mailto:bpo@eonix.be" target="_blank">bpo@eonix.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I have to use Qt Creator as an IDE, and integrate ITK into the project I work on.<br>
<br>
I use MSVC 2010 64 bit compiler. I compiled ITK with this compiler, without glitches. I installed ITK in C:\ITK.<br>
<br>
However QMake doesn't want at all to find itkImage.h.<br>
<br>
I'm surprised, since I checked what follows many times.<br>
<br>
Here are the files of plain C++ project with Qt Creator, thank you for helping.<br>
<br>
Qt Creator project file (.pro):<br>
<br>
TEMPLATE = app<br>
CONFIG += console<br>
CONFIG -= app_bundle<br>
CONFIG -= qt<br>
<br>
# ITK base directory<br>
ITK = $(ITK)<br>
<br>
# ITK headers base directory<br>
ITK_INCLUDES = $${ITK}/include/ITK4-5<br>
<br>
# ITK libs base directory<br>
ITK_LIBS = $${ITK}/lib<br>
<br>
# Pass information to Qmake (include path)<br>
INCLUDEPATH += \<br>
# $${ITK_INCLUDES}<br>
C:/ITK/include/ITK4-5<br>
<br>
# Pass information to Qmake (lib path)<br>
QMAKE_LIBDIR += \<br>
#    $${ITK_LIBS}<br>
C:/ITK/lib<br>
<br>
SOURCES += main.cpp<br>
<br>
main.cpp:<br>
<br>
#include "itkImage.h"<br>
#include <iostream><br>
int main()<br>
{<br>
typedef itk::Image< unsigned short, 3 > ImageType;<br>
ImageType::Pointer image = ImageType::New();<br>
std::cout << "ITK Hello World !" << std::endl;<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div>