[Interest] CMake Find scripts
loaden at gmail.com
Fri Sep 7 14:43:45 CEST 2012
1. Are you sure the cmake script exist in $QTDIR/lib/cmake?
2. Are you sure was using -DCMAKE_PREFIX_PATH=... to point find Qt5's cmake?
CMake works well for me.
2012/9/7 Walter Horsten <walter.horsten at telenet.be>
> Thanks for your answer Frans, but I already have cmake scripts that
> are functional for Qt4. Qt5, however, uses a different approach (
> http://doc-snapshot.qt-project.org/5.0/cmake-manual.html ). I did find
> some scripts like "Qt5CoreConfig.cmake" in the Qt5 directory tree and
> I guess could include them directly, but I don't think this is how it
> should be done. So my question remains ... where is the
> FindQt5Core.cmake file? Should it be included in CMake 2.8.9?
> On Fri, Sep 7, 2012 at 1:49 PM, Frans Klaver <fransklaver at gmail.com>
> > On Fri, Sep 7, 2012 at 1:45 PM, Walter Horsten
> > <walter.horsten at telenet.be> wrote:
> >> I downloaded the QT5.0.0 Beta binaries for windows, installed CMake
> >> 2.8.9 and tried to use cmake to locate QT5 using:
> >> FIND_PACKAGE(Qt5Core)
> >> which fails because "FindQt5Core.cmake" can't be located.
> > Qt4 can be found using
> > find_package(Qt4 COMPONENTS QtCore QtGui ... REQUIRED)
> > I suppose this same approach would be valid for Qt5:
> > find_package(Qt5 COMPONENTS QtCore REQUIRED)
> > Hope that helps.
> > Frans
> Interest mailing list
> Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest