Skip to content

Commit

Permalink
QT_PLUGINS_DIR is still required
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 8, 2020
1 parent 8eb3e58 commit 44b2518
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -401,6 +401,11 @@ IF(WITH_CORE)
IF (APPLE) IF (APPLE)
FIND_PACKAGE(Qt5MacExtras REQUIRED) FIND_PACKAGE(Qt5MacExtras REQUIRED)
ENDIF (APPLE) ENDIF (APPLE)

# get the Qt plugins directory
GET_TARGET_PROPERTY(QMAKE_EXECUTABLE Qt5::qmake LOCATION)
EXEC_PROGRAM(${QMAKE_EXECUTABLE} ARGS "-query QT_INSTALL_PLUGINS" RETURN_VALUE return_code OUTPUT_VARIABLE QT_PLUGINS_DIR )

MESSAGE(STATUS "Found Qt version: ${Qt5Core_VERSION_STRING}") MESSAGE(STATUS "Found Qt version: ${Qt5Core_VERSION_STRING}")
IF (WITH_QUICK) IF (WITH_QUICK)
FIND_PACKAGE(Qt5Qml REQUIRED) FIND_PACKAGE(Qt5Qml REQUIRED)
Expand Down

0 comments on commit 44b2518

Please sign in to comment.