CMake 3.0 is now the minimum required version.
It is no more needed to include "CTestUseLaunchers" explicitly has it is done within the command " include(CTest)" (see http://www.cmake.org/cmake/help/v3.0/module/CTestUseLaunchers.html).
CMake CMP0042 warning. At this stage, it is not known if this modification will introduce again the superbuild linkage error.
Header files are listed as in the "src/src.pri" file.
Source files are listed as in the "src/src.pri" file.
There is no resources or UI file to wrap. These commands are removed.
Use the Qt5 libraries name and lower them for Qt4.
Introduction of the CMake variable "PythonQt_QT_MAJOR_VERSION" to choose the major version of Qt to wrap (Qt 4.x or Qt 5.x).
Depending of the major version to wrap, the adapted package (Qt5 or Qt4) is searched and the CMake variable "PythonQt_QT_VERSION" is set in consequence.
CMake script adapted to support Qt5!
Some sources are included only if some libraries are wrapped.
Fancy display added to summarized the libraries wrapped.
CMake option "BUILD_TESTING" added.
CMake Option "PythonQt_Wrap_QtAll" activated only when one version of Qt was found.
Adapt the indentation in the CMake script.
To remove lots of warnings like: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings]. WARNING: This will works only for GCC and clang,
Clang warning: '&&' within '||' [-Wlogical-op-parentheses].
Description for the pragma added.
Clang warning: implicit conversion of NULL constant to 'bool' [-Wnull-conversion].
Clang warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare].