Hello,

I'm quite sure the script is not where it is supposed to be :-) ... I
just compared the $QTDIR\cmake\ folder from the windows install with
the same folder on a qt5 alpha build I did a while ago on linux ... it
seems that a lot of files are missing from the cmake folder of the
windows install. So I guess something went wrong during the
installation process (or the installer doesn't contain them?).

I'll try reinstalling the beta package ... in case the files are still
missing: does someone know if it is possible to generate them without
compiling the entire library?

Thanks,
Walter

On Fri, Sep 7, 2012 at 2:43 PM, Loaden <[email protected]> wrote:
> 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 <[email protected]>
>>
>> Hello,
>>
>> 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?
>>
>> Walter
>>
>> On Fri, Sep 7, 2012 at 1:49 PM, Frans Klaver <[email protected]>
>> wrote:
>> > On Fri, Sep 7, 2012 at 1:45 PM, Walter Horsten
>> > <[email protected]> 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
>> [email protected]
>> http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
>
> --
> Best Regards
> Yuchen
>
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to