Obtain Qt5 translations folder for windows and mac builds.
This commit is contained in:
@@ -254,6 +254,10 @@ if (ENABLE_QT5)
|
||||
find_package(Qt5Quick REQUIRED)
|
||||
find_package(Qt5Qml REQUIRED)
|
||||
endif (ENABLE_UBUNTU)
|
||||
if (APPLE OR WIN32)
|
||||
get_target_property(QT_QMAKE_EXECUTABLE Qt5::qmake IMPORTED_LOCATION)
|
||||
exec_program(${QT_QMAKE_EXECUTABLE} ARGS -query QT_INSTALL_TRANSLATIONS OUTPUT_VARIABLE QT_TRANSLATIONS_DIR)
|
||||
endif (APPLE OR WIN32)
|
||||
else (ENABLE_QT5)
|
||||
find_package(Qt4 REQUIRED QtCore QtGui QtXml QtNetwork QtSvg)
|
||||
set(QTCORELIBS ${QT_QTCORE_LIBRARY})
|
||||
|
||||
Reference in New Issue
Block a user