specify which Qt packages are required and enable automoc
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user