It is likely that the variable QT_INCLUDE_DIR isn&#39;t correctly specified. Post the values from your CMakeCache.txt and also verify the include paths yourself to make sure that qapplication.h is indeed present in the include path using &quot;make VERBOSE=1&quot; on gcc or from the properties panel in VisualStudio<br>
<br><div><span class="gmail_quote">On 2/27/08, <b class="gmail_sendername">Walter Cabrera</b> &lt;<a href="mailto:walter@eresmas.net">walter@eresmas.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> I am doing a test with the following source (Qt + itk):<br> <br> #include &lt;qapplication.h&gt;<br> <br> int main(int argc, char *argv[])<br> {<br>&nbsp;&nbsp;QApplication app( argc, argv );<br>&nbsp;&nbsp;return app.exec();<br> }<br> <br>
 give&nbsp;&nbsp;error becouse not found qapplication.h<br> <br> CMakeLists.txt used<br> <br> PROJECT(QtITK)<br> <br> # Find ITK.<br> FIND_PACKAGE(ITK REQUIRED)<br> IF(ITK_FOUND)<br>&nbsp;&nbsp;INCLUDE(${ITK_USE_FILE})<br> ELSE (ITK_FOUND)<br>
&nbsp;&nbsp;MESSAGE(FATAL_ERROR &quot;ITK not found. Please set ITK_DIR.&quot;)<br> ENDIF(ITK_FOUND)<br> <br> # Find Qt.<br> FIND_PACKAGE(QT)<br> IF(QT_FOUND)<br>&nbsp;&nbsp;INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})<br> ELSE (QT_FOUND)<br>&nbsp;&nbsp;MESSAGE(FATAL_ERROR &quot;QT not found. Please set QT_DIR.&quot;)<br>
 ENDIF(QT_FOUND)<br> <br> ADD_EXECUTABLE(QtITK QtITK.cxx)<br> <br> Someone can help me?<br> <br> Thanks<br> <br><br> <br> --<br> View this message in context: <a href="http://www.nabble.com/Error-in-program-Qt-%2B-itk-package-tp15714380p15714380.html">http://www.nabble.com/Error-in-program-Qt-%2B-itk-package-tp15714380p15714380.html</a><br>
 Sent from the ITK - Users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br> <br> _______________________________________________<br> Insight-users mailing list<br> <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>
 <a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br> </blockquote></div><br>