[Interest] CMake Find scripts
walter.horsten at telenet.be
Fri Sep 7 14:03:17 CEST 2012
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> wrote:
> 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:
>> 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.
More information about the Interest