Find uic and rcc on openSUSE

openSUSE (and most likely other distributions) is renaming uic and rcc
to avoid file conflicts with Qt4.

Prefer these if they exist
This commit is contained in:
Adrian Schröter
2020-01-24 13:23:00 +01:00
committed by Yorik van Havre
parent 6efbf14126
commit 68a3729422

View File

@@ -33,9 +33,9 @@ IF(Qt5Core_VERSION VERSION_LESS 5.14)
set(RCCOPTIONS "")
ELSE(Qt5Core_VERSION VERSION_LESS 5.14)
# New (>= 5.14)
FIND_PROGRAM(PYSIDE2UICBINARY NAMES uic)
FIND_PROGRAM(PYSIDE2UICBINARY NAMES uic-qt5 uic)
set(UICOPTIONS "--generator=python")
FIND_PROGRAM(PYSIDE2RCCBINARY NAMES rcc)
FIND_PROGRAM(PYSIDE2RCCBINARY NAMES rcc-qt5 rcc)
set(RCCOPTIONS "--generator=python" "--compress-algo=zlib" "--compress=1")
ENDIF(Qt5Core_VERSION VERSION_LESS 5.14)