Robert,

I'm not the author of the Qt5 updates but I would to see Qt5 support changes to be merged. Please, let me clarify few things and also suggest possible solutions:

-CMake doesn't bundle any FindQt5.cmake module because all cmake scripts are now part of Qt5 package. Once Qt5 is installed and CMAKE_PREFIX_PATH is set to /path/to/Qt5 and cmake is at least 2.8.8. all the macros are found and everything works as expected.

- to fix cmake warning (around line 550 in root CMakeListst.txt) :
old:
FIND_PACKAGE(Qt5Widgets)

new:
   # The QUIET option disables messages if the package cannot be found.
    FIND_PACKAGE(Qt5Widgets QUIET)
    IF ( Qt5Widgets_FOUND )
IF ( CMAKE_MAJOR_VERSION LESS 2 OR CMAKE_MINOR_VERSION LESS 8 OR CMAKE_PATCH_VERSION LESS 8 )
            MESSAGE(
                SEND_ERROR
                "Qt5 requires CMake version 2.8.8 or greater!\n"
"Update CMake or set DESIRED_QT_VERSION to less than 5 or disable OSG_USE_QT."
                )
        ENDIF()
    ENDIF()

- Qt4 and Qt5 parts of the cmake files arn't side by side: That is correct because the first argument to qt5_use_modules must be an existing target. The alternative is to move qt5_use_modules to osg's SETUP_LIBRARY macro which is something I wouldn't recommend.


Regards,

Robert Milharcic
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to