Re: [CMake] Using Qt5 with CMake

2014-03-15 Thread Alan W. Irwin
Hi Steve: If you remember my OP, I don't (yet) have access to Qt5 myself, but another PLplot developer does, and after I changed the Qt relevant part of our build system following the helpful advice I got on this list, he was able to refine my work so that PLplot now produces good qt PLplot

Re: [CMake] Using Qt5 with CMake

2014-03-12 Thread Stephen Kelly
Alan W. Irwin wrote: (1) How should you replace find_package(Qt4 4.8.2 COMPONENTS QtCore QtGui QtSvg) find_package(Qt5 5.2.1 COMPONENTS Svg) or find_package(Qt5Svg 5.2.1) Packages and targets know their dependencies so you don't have to. and qt4_wrap_cpp( QT_MOC_OUTFILES

Re: [CMake] Using Qt5 with CMake

2014-03-12 Thread Alan W. Irwin
On 2014-03-12 01:15-0400 Jean-Christophe Fillion-Robin wrote: Hi Alan, To get a better idea of the required change to support Qt5, you could look at what we did for VTK. See https://github.com/Kitware/VTK/commit/384636ec9f4 Hth Jc Hi Jean-Christophe: Thanks! That is a big help. I notice,

Re: [CMake] Using Qt5 with CMake

2014-03-12 Thread Alan W. Irwin
Hi Steve: Your answer was quite helpful, but I have one supplementary question. On 2014-03-12 09:34+0100 Stephen Kelly wrote: Alan W. Irwin wrote: (1) How should you replace find_package(Qt4 4.8.2 COMPONENTS QtCore QtGui QtSvg) find_package(Qt5 5.2.1 COMPONENTS Svg) or

Re: [CMake] Using Qt5 with CMake

2014-03-12 Thread Stephen Kelly
Alan W. Irwin wrote: Packages and targets know their dependencies so you don't have to. Your statement appears to imply that QtSvg has a QtGui (and QtCore) dependency so I don't have to worry about those other components. Correct. I suggest you create a project for experimentation such as

Re: [CMake] Using Qt5 with CMake

2014-03-11 Thread Alan W. Irwin
On 2014-01-26 17:36+0100 Stephen Kelly wrote: http://doc-snapshot.qt-project.org/qt5-stable/cmake-manual.html To resurrect this slightly old thread, it has been years since I implemented the Qt4 parts of the PLplot build system, and I haven't looked much at the Qt components of our build

Re: [CMake] Using Qt5 with CMake

2014-03-11 Thread Jean-Christophe Fillion-Robin
Hi Alan, To get a better idea of the required change to support Qt5, you could look at what we did for VTK. See https://github.com/Kitware/VTK/commit/384636ec9f4 Hth Jc On Tue, Mar 11, 2014 at 4:59 PM, Alan W. Irwin ir...@beluga.phys.uvic.cawrote: On 2014-01-26 17:36+0100 Stephen Kelly

Re: [CMake] Using Qt5 with CMake

2014-01-27 Thread Michael Jackson
I think I stumbled on that through a google search but I was not sure if it was Current or not. I guess it is. Thanks Mike Jackson On Jan 26, 2014, at 11:36 AM, Stephen Kelly steve...@gmail.com wrote: Michael Jackson wrote: Any help would be much appreciated. I assume you have read

[CMake] Using Qt5 with CMake

2014-01-26 Thread Michael Jackson
Does anyone have any notes on how to transition a project using Qt4 to Qt5 in the context of updating the cmake files? I have things like this in my CMakeLists.txt files: # -- # Qt 4 Section #

Re: [CMake] Using Qt5 with CMake

2014-01-26 Thread Stephen Kelly
Michael Jackson wrote: Any help would be much appreciated. I assume you have read http://doc-snapshot.qt-project.org/qt5-stable/cmake-manual.html and you need more help. What help do you need specifically? Thanks, Steve. -- Powered by www.kitware.com Please keep messages on-topic

[CMake] Using Qt5 with cmake

2013-01-18 Thread Bogdan Cristea
Hi Qt5 provides configuration files for cmake, but I haven't yet found a way to detect Qt5 as recommended in this post (I am using qt5 on Windows with Visual Studio 2010): http://www.kdab.com/using-cmake-with-qt-5/ As far as I understand cmake does not yet provide support for qt5 (at least not

Re: [CMake] Using Qt5 with cmake

2013-01-18 Thread Laszlo Papp
What is wrong about Stephen's post? It has been working for me in several projects. On Fri, Jan 18, 2013 at 3:19 PM, Bogdan Cristea crist...@gmail.com wrote: Hi Qt5 provides configuration files for cmake, but I haven't yet found a way to detect Qt5 as recommended in this post (I am using qt5

Re: [CMake] Using Qt5 with cmake

2013-01-18 Thread Bogdan Cristea
Le vendredi 18 janvier 2013 à 15:22 +, Laszlo Papp a écrit : What is wrong about Stephen's post? It has been working for me in several projects. A line like this find_package(Qt5Declarative) generates a warning about missing FindQt5Declarative.cmake which is not provided by Qt5 nor cmake.

Re: [CMake] Using Qt5 with cmake

2013-01-18 Thread Laszlo Papp
There is also this: http://qt-project.org/doc/qt-5.0/qtdoc/cmake-manual.html Either way, check if your Qt installation ships the cmake files. Qt5 has builtin support for third-party projects from cmake point of view. On Fri, Jan 18, 2013 at 3:29 PM, Bogdan Cristea crist...@gmail.com wrote: Le

Re: [CMake] Using Qt5 with cmake

2013-01-18 Thread Stephen Kelly
Bogdan Cristea wrote: Le vendredi 18 janvier 2013 à 15:22 +, Laszlo Papp a écrit : What is wrong about Stephen's post? It has been working for me in several projects. A line like this find_package(Qt5Declarative) generates a warning about missing FindQt5Declarative.cmake which is

Re: [CMake] Using Qt5 with cmake

2013-01-18 Thread Bogdan Cristea
Le vendredi 18 janvier 2013 à 15:31 +, Laszlo Papp a écrit : There is also this: http://qt-project.org/doc/qt-5.0/qtdoc/cmake-manual.html Either way, check if your Qt installation ships the cmake files. Qt5 has builtin support for third-party projects from cmake point of view. Yes,

Re: [CMake] Using Qt5 with cmake

2013-01-18 Thread Bogdan Cristea
Le vendredi 18 janvier 2013 à 16:36 +0100, Stephen Kelly a écrit : I'm afraid the post is a little but outdated. Qt5Declarative was renamed to QtQuick1 before the Qt 5 release, so try to find that instead. I'll see about updating the blog post. Hi I think that what is missing is

Re: [CMake] Using Qt5 with cmake

2013-01-18 Thread Alexander Neundorf
On Friday 18 January 2013, Bogdan Cristea wrote: Le vendredi 18 janvier 2013 à 15:22 +, Laszlo Papp a écrit : What is wrong about Stephen's post? It has been working for me in several projects. A line like this find_package(Qt5Declarative) generates a warning about missing