Re: [Interest] How to use Qt6::qmake ?

2021-02-03 Thread Joerg Bornemann
On 1/19/21 5:40 PM, Thiago Macieira wrote: On Monday, 18 January 2021 19:13:08 PST Nicholas Yue wrote: For the Qt5 cmake configuration, the setting of the path to the actual qmake binary whereas in the Qt6 variant, is looks like a generic import location not tied to qmake specifically. I am

Re: [Interest] How to use Qt6::qmake ?

2021-01-19 Thread Thiago Macieira
On Monday, 18 January 2021 19:13:08 PST Nicholas Yue wrote: > For the Qt5 cmake configuration, the setting of the path to the actual > qmake binary whereas in the Qt6 variant, is looks like a generic import > location not tied to qmake specifically. I am wondering if that is the > reason why

Re: [Interest] How to use Qt6::qmake ?

2021-01-18 Thread Nicholas Yue
Thanks Marius for gist, I am afraid it is unlikely to work out for me as it still refers to QT_QMAKE_TARGET which is set to Qt6::qmake In the cmake files ship with *Qt5* I see this (in Qt5CoreConfigExtras.cmake) if (NOT TARGET Qt5::qmake) add_executable(Qt5::qmake IMPORTED)

Re: [Interest] How to use Qt6::qmake ?

2021-01-18 Thread Marius Kittler
Hi, Qt's CMake modules should already make most paths available. I came up with the following approach to support Qt 5 and Qt 6: https://github.com/Martchus/ qtutilities/blob/5960c215586cf0ca777a511c6f0830c1c63ddaa8/cmake/modules/ QtLinkage.cmake#L124 It works at least for

Re: [Interest] How to use Qt6::qmake ?

2021-01-18 Thread Nicholas Yue
> > Regards > > > > Kai > > > > *From:* Interest *On Behalf Of *Nicholas > Yue > *Sent:* Monday, January 18, 2021 6:02 AM > *To:* interest@qt-project.org > *Subject:* [Interest] How to use Qt6::qmake ? > > > > Hi, > > > > I would lik

Re: [Interest] How to use Qt6::qmake ?

2021-01-18 Thread Kai Köhne
Hi, execute_process is done at CMake configure time. You should be able to use Qt6::qmake target if you use add_custom_command. Regards Kai From: Interest On Behalf Of Nicholas Yue Sent: Monday, January 18, 2021 6:02 AM To: interest@qt-project.org Subject: [Interest] How to use Qt6::qmake

[Interest] How to use Qt6::qmake ?

2021-01-17 Thread Nicholas Yue
Hi, I would like to use qmake within a CMake build with the following find_package(Qt6 COMPONENTS CoreTools UiTools LinguistTools Widgets OpenGL OpenGLWidgets REQUIRED CONFIG) execute_process(Qt6::qmake OUTPUT_VARIABLE qmake_stdout ) How ever, the following reports that Qt6::qmake is