GODT-1942: Use qmake to find the QT6DIR

This commit is contained in:
Romain LE JEUNE
2022-10-17 15:46:13 +02:00
parent 9d800324af
commit ce5b6c9f64
8 changed files with 29 additions and 39 deletions

View File

@ -40,10 +40,7 @@ endif()
#****************************************************************************************************************************************************
# Qt
#****************************************************************************************************************************************************
if (NOT DEFINED ENV{QT6DIR})
message(FATAL_ERROR "QT6DIR needs to be defined and point to the root of your Qt 6 folder (e.g. /Users/MyName/Qt/6.3.1/clang_64).")
endif ()
set(CMAKE_PREFIX_PATH $ENV{QT6DIR} ${CMAKE_PREFIX_PATH})
include(../FindQt.cmake)
find_package(Qt6 COMPONENTS Core REQUIRED)
qt_standard_project_setup()