use CMAKE_AUTOUIC, CMAKE_AUTOMOC and CMAKE_AUTORCC (#1135)

This commit is contained in:
cdb0y511
2023-09-14 23:25:00 +08:00
committed by GitHub
parent 01c2e70b11
commit 49daa211ea
5 changed files with 13 additions and 58 deletions

View File

@@ -325,6 +325,9 @@ IF(WITH_QT)
ENDIF()
IF(QT4_FOUND OR Qt5_FOUND OR Qt6_FOUND)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
IF("${VTK_MAJOR_VERSION}" EQUAL 5)
FIND_PACKAGE(QVTK REQUIRED) # only for VTK 5
ELSE()