--- qsampler/trunk/CMakeLists.txt 2020/12/08 17:13:49 3839 +++ qsampler/trunk/CMakeLists.txt 2020/12/14 15:49:17 3841 @@ -69,13 +69,14 @@ endif () # Check for Qt -find_package (Qt5 REQUIRED COMPONENTS Core Gui Widgets) +find_package (QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED) +find_package (Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui Widgets) if (CONFIG_XUNIQUE) - find_package (Qt5 REQUIRED COMPONENTS Network) + find_package (Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Network) endif () -find_package (Qt5LinguistTools) +find_package (Qt${QT_VERSION_MAJOR}LinguistTools) include (CheckIncludeFile) include (CheckIncludeFiles)