<div dir="ltr">This page might have what you're looking for [1]. If not please feel free to update it once this is resolved!<div><br></div><div>You might want to try setting CMAKE_PREFIX_PATH to the directory containing the "lib/cmake" directories, which is usually installed with qt in "C:/path/to/qt-5.3-install/5.3/<your_compiler> " which in your case is "C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl". Note also that it looks like you have set CMAKE_INSTALL_PREFIX to this value, which tells cmake where your current project will be installed [2] - probably not what you want.</div>
<div><br></div><div>If all else fails you could try manually pointing QT_QTCORE_LIBRARY_* variables to those libraries. This shouldn't be necessary if CMake correctly finds qt but occasionally helps diagnose the problem nonetheless.<br>
<div><br></div><div><br></div><div>[1] <a href="http://vtk.org/Wiki/VTK/Configure_and_Build#Qt5..2A">http://vtk.org/Wiki/VTK/Configure_and_Build#Qt5..2A</a></div></div><div>[2] <a href="http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.html">http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.html</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 22, 2014 at 8:26 AM, Luis Vieira <span dir="ltr"><<a href="mailto:luis.vieira@vektore.com" target="_blank">luis.vieira@vektore.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<br>
<div>
<div dir="ltr">
<div class="gmail_quote">Hello, We hope this email find you
well.<br>
<div dir="ltr">
<div> <br>
<div>
<div>
<p class="MsoNormal" style="text-align:justify"><b>We
have the follow CMake - VTK - Visual Studio 2013
Configuration:</b></p>
<p style="text-align:justify"><span style="font-family:Symbol">·<span> </span></span>Visual Studio
2013 opengl +64;</p>
<p style="text-align:justify"><span style="font-family:Symbol">·<span> </span></span>CMake 3.0;</p>
<p style="text-align:justify"><span style="font-family:Symbol">·<span> </span></span>VTK-6.1.0.</p>
<p class="MsoNormal" style="text-align:justify"><b>CMake
configurated the following paths:</b></p>
<p style="text-align:justify"><span style="font-family:Symbol">·<span> </span></span>C:\Program
Files\VTK (Debug);</p>
<p style="text-align:justify"><span style="font-family:Symbol">·<span> </span></span>C:\Program
Files\VTK (Release);</p>
<p style="text-align:justify"><span style="font-family:Symbol">·<span> </span></span>C:\VTK\build;</p>
<p style="text-align:justify"><span style="font-family:Symbol">·<span> </span></span>C:\VTK\Data.<br>
<img src="cid:part1.05050701.08030705@vektore.com" alt="" height="459" width="1209"><br>
</p>
<p class="MsoNormal" style="text-align:justify">The
environment stated above works very well. However,
we need to provide/enable the same configuration
between<b> VTK</b> and <b>QT Enterprise Creator 5.3</b>.
We used CMake 3.0 to configure the linkage between <b>QT
5.3 and VTK - 6.1.0</b>. </p>
<p class="MsoNormal" style="text-align:justify">The
following variables were configured in CMake:</p>
<p style="text-align:justify"><span style="font-family:Symbol">·<span> </span></span><b>VTK_Group_Qt:BOOL=ON;</b></p>
<p style="text-align:justify"><b><span style="font-family:Symbol">·<span> </span></span>QT_QMAKE_EXECUTABLE:FILEPATH=C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl/bin/qmake.exe. </b></p>
<p style="text-align:justify"> <br>
</p>
<p class="MsoNormal" style="text-align:justify"><img src="cid:part2.07030702.09020708@vektore.com" alt="" height="637" width="1197"> </p>
<p class="MsoNormal" style="text-align:justify"><br>
<font color="#ff0000">Despite of the above
configuration, CMake presents this error message:<br>
</font></p>
<p class="MsoNormal" style="text-align:justify"><font color="#ff0000">CMake Warning at
C:/Program Files
(x86)/CMake/share/cmake-3.0/Modules/FindQt4.cmake:616
(message):
C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl/bin/qmake.exe
reported QT_INSTALL_LIBS as
"C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl/lib" but
QtCore could not be found there. Qt is
NOT installed correctly for the target
build environment. Call Stack (most
recent call first):
GUISupport/Qt/CMakeLists.txt:68 (find_package)
</font> </p>
<p class="MsoNormal" style="text-align:justify"> <font color="#ff0000">CMake Error at C:/Program Files
(x86)/CMake/share/cmake-3.0/Modules/FindQt4.cmake:621
(message): Could NOT find
QtCore. Check
C:/VTK/bin/msvc2013_64_opengl/CMakeFiles/CMakeError.log
for more details. Call Stack
(most recent call first):
GUISupport/Qt/CMakeLists.txt:68 (find_package)
</font> <br>
</p>
Could you guys please advise me on how to properly set
up the programming environment in which CMake will
build the bridge amongst the VSC++ OpenGL +64, VTK
6.1.0 and QT 5.3? What are our options to direct CMake
to recognize QT5.3? The way it is now it only
recognizes QT4.0.
<p class="MsoNormal"><br>
Thank you so much.<br>
</p>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
<br>
</div>
<br>
</div>
<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 <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Christopher Mullins<div>R&D Engineer</div><div>Kitware Inc.,</div><div>919.869.8871</div>
</div>