[Interest] How to use Qt6::qmake ?

Kai Köhne Kai.Koehne at qt.io
Mon Jan 18 10:35:15 CET 2021


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 <interest-bounces at qt-project.org> On Behalf Of Nicholas Yue
Sent: Monday, January 18, 2021 6:02 AM
To: interest at qt-project.org
Subject: [Interest] How to use Qt6::qmake ?

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 not found

  execute_process given unknown argument "Qt6::qmake".

Cheers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210118/8996477c/attachment.html>


More information about the Interest mailing list