mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
This pull request is a subset of #6490 This adds a new library for creation of applications based on Qt Quick framework. It contains reusable QML / Qt Quick components based on QGIS core library. The initial work introduces MapCanvas To enable compilation of the library, use WITH_QUICK=TRUE Further documentation of the library is located in doc/qgsquick.dox For background information see the associated QEP: qgis/QGIS-Enhancement-Proposals#109 The initial implementation is largely based on the work of Matthias Kuhn and Marco Bernasocchi on QField probject - kudos to them for the great job!
48 lines
1.7 KiB
CMake
48 lines
1.7 KiB
CMake
# Qt QML Tools
|
|
# ~~~~~~~~~~~~
|
|
#
|
|
# To generate qmltypes files required by Qt Creator to allow QML code inspection
|
|
# (http://doc.qt.io/qtcreator/creator-qml-modules-with-plugins.html#generating-qmltypes-files)
|
|
# we need to have installed qmlplugindump unity (shipped with Qt 4.8 and later)
|
|
# http://doc.qt.io/qtcreator/creator-qml-modules-with-plugins.html#dumping-plugins-automatically
|
|
#
|
|
# Find the installed version of qmlplugindump utility.
|
|
# FindQtQmlTools should be called after Qt5 has been found
|
|
#
|
|
# This file defines the following variables:
|
|
#
|
|
# QMLPLUGINDUMP_FOUND - system has qmlplugindump
|
|
# QMLPLUGINDUMP_EXECUTABLE - Path to qmlplugindump executable
|
|
#
|
|
# Also defines MACRO to create qmltypes file, when QML directory is supplied
|
|
#
|
|
# Copyright (c) 2017, Peter Petrik <zilolv at gmail dot com>
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
|
|
MACRO(FIND_QMLPLUGINDUMP)
|
|
IF(NOT QMLPLUGINDUMP_EXECUTABLE)
|
|
IF (MSVC)
|
|
FIND_PROGRAM(QMLPLUGINDUMP_EXECUTABLE qmlplugindump.exe)
|
|
ELSE (MSVC)
|
|
FIND_PROGRAM(QMLPLUGINDUMP_EXECUTABLE qmlplugindump)
|
|
ENDIF (MSVC)
|
|
ENDIF(NOT QMLPLUGINDUMP_EXECUTABLE)
|
|
|
|
IF (QMLPLUGINDUMP_EXECUTABLE)
|
|
SET(QMLPLUGINDUMP_FOUND TRUE)
|
|
MESSAGE(STATUS "Found qmlplugindump: ${QMLPLUGINDUMP_EXECUTABLE}")
|
|
ELSE()
|
|
SET(QMLPLUGINDUMP_FOUND FALSE)
|
|
IF (QMLPLUGINDUMP_FIND_REQUIRED)
|
|
MESSAGE(FATAL_ERROR "Could not find qmlplugindump")
|
|
ELSE (QMLPLUGINDUMP_FIND_REQUIRED)
|
|
MESSAGE(WARNING "Could not find qmlplugindump")
|
|
ENDIF (QMLPLUGINDUMP_FIND_REQUIRED)
|
|
ENDIF (QMLPLUGINDUMP_EXECUTABLE)
|
|
ENDMACRO(FIND_QMLPLUGINDUMP)
|
|
|
|
IF (NOT QMLPLUGINDUMP_FOUND)
|
|
FIND_QMLPLUGINDUMP()
|
|
ENDIF (NOT QMLPLUGINDUMP_FOUND)
|