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-boun...@qt-project.org> 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 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
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest