[cmake-developers] Visual Studio 2013 with CMake GUI on Windows
Robert Dailey
rcdailey.lists at gmail.com
Fri Nov 13 12:50:58 EST 2015
On Fri, Nov 13, 2015 at 10:53 AM, Brad King <brad.king at kitware.com> wrote:
> On 11/13/2015 11:42 AM, Robert Dailey wrote:
>> CMake requires Qt4, which is incompatible with VS 2013 officially. I
>> do not want to apply patches to get it working.
>>
>> Is it possible to get CMake to use Qt5?
>
> CMake already supports being built with Qt5 on Windows.
>
> Configure with CMAKE_PREFIX_PATH containing to the path to
> msvc2013_64_opengl and it should be found automatically.
> Ensure Qt5Widgets_DIR points to
>
> msvc2013_64_opengl/lib/cmake/Qt5Widgets
Thank you Brad, I wasn't setting CMAKE_PREFIX_PATH because it didn't
show up by default in the list of cache variables after generating. I
added it manually and it just worked. At first all I was doing was
enabling QT dialog in config, regenerating, and then changed the path
that it wanted for qtmake.exe. When I pointed it at qtmake for Qt5, it
complained about requiring Qt4.
More information about the cmake-developers
mailing list