specify which Qt packages are required and enable automoc

This commit is contained in:
Max Lyon
2020-12-02 14:17:17 +01:00
parent 5550fb0714
commit 555dd1fcb1

View File

@@ -42,7 +42,14 @@ if ( BUILD_APPS )
# For the apps, we need qt and opengl to build them # For the apps, we need qt and opengl to build them
if (NOT QT5_FOUND) if (NOT QT5_FOUND)
set(QT5_REQUIRED_PACKAGES
Qt5Core
Qt5Widget
Qt5OpenGL
Qt5Gui
)
acg_qt5 () acg_qt5 ()
set(CMAKE_AUTOMOC ON)
endif() endif()
if ("${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles") if ("${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles")