mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
- Needs testing on Windows platform - Add QScintilla2 library version info to About dialog - Add Mac bundling support for Qwt 6 framework and QScintilla2 - Fallback to sys or custom site-pkgs when looking for PyQt4 modules to Mac bundle
44 lines
1.4 KiB
CMake
44 lines
1.4 KiB
CMake
# Find QScintilla2 PyQt4 module
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
#
|
|
# QScintilla2 website: http://www.riverbankcomputing.co.uk/software/qscintilla/
|
|
#
|
|
# Find the installed version of QScintilla2 module. FindQsci should be called
|
|
# after Python has been found.
|
|
#
|
|
# This file defines the following variables:
|
|
#
|
|
# QSCI_FOUND - system has QScintilla2 PyQt4 module
|
|
#
|
|
# QSCI_MOD_VERSION_STR - The version of Qsci module as a human readable string.
|
|
#
|
|
# Copyright (c) 2012, Larry Shaffer <larrys@dakotacarto.com>
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
|
|
IF(EXISTS QSCI_MOD_VERSION_STR)
|
|
# Already in cache, be silent
|
|
SET(QSCI_FOUND TRUE)
|
|
ELSE(EXISTS QSCI_MOD_VERSION_STR)
|
|
|
|
FIND_FILE(_find_qsci_py FindQsci.py PATHS ${CMAKE_MODULE_PATH})
|
|
|
|
EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${_find_qsci_py} OUTPUT_VARIABLE qsci_ver)
|
|
|
|
IF(qsci_ver)
|
|
STRING(REGEX REPLACE "^qsci_version_str:([^\n]+).*$" "\\1" QSCI_MOD_VERSION_STR ${qsci_ver})
|
|
SET(QSCI_FOUND TRUE)
|
|
ENDIF(qsci_ver)
|
|
|
|
IF(QSCI_FOUND)
|
|
IF(NOT QSCI_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Found QScintilla2 PyQt4 module: ${QSCI_MOD_VERSION_STR}")
|
|
ENDIF(NOT QSCI_FIND_QUIETLY)
|
|
ELSE(QSCI_FOUND)
|
|
IF(QSCI_FIND_REQUIRED)
|
|
MESSAGE(FATAL_ERROR "Could not find QScintilla2 PyQt4 module")
|
|
ENDIF(QSCI_FIND_REQUIRED)
|
|
ENDIF(QSCI_FOUND)
|
|
|
|
ENDIF(EXISTS QSCI_MOD_VERSION_STR)
|