Sha256: 4bff86635a894b19d19cdf51af7cfb6e1fea4590e5c47dd621054250097198fa

Contents?: true

Size: 1.76 KB

Versions: 31

Compression:

Stored size: 1.76 KB

Contents

# - Try to find the QScintilla2 includes and library
# which defines
#
# QSCINTILLA_FOUND - system has QScintilla2
# QSCINTILLA_INCLUDE_DIR - where to find qextscintilla.h
# QSCINTILLA_LIBRARIES - the libraries to link against to use QScintilla
# QSCINTILLA_LIBRARY - where to find the QScintilla library (not for general use)

# copyright (c) 2007 Thomas Moenicke thomas.moenicke@kdemail.net
#
# Redistribution and use is allowed according to the terms of the FreeBSD license.

IF(NOT QT4_FOUND)
    INCLUDE(FindQt4)
ENDIF(NOT QT4_FOUND)

SET(QSCINTILLA_FOUND FALSE)

IF(QT4_FOUND)
    FIND_PATH(QSCINTILLA_INCLUDE_DIR qsciglobal.h
    "${QT_INCLUDE_DIR}/Qsci" /usr/include /usr/include/Qsci
    )

    SET(QSCINTILLA_NAMES ${QSCINTILLA_NAMES} qscintilla2 libqscintilla2)
    FIND_LIBRARY(QSCINTILLA_LIBRARY
        NAMES ${QSCINTILLA_NAMES}
        PATHS ${QT_LIBRARY_DIR}
    )

    IF (QSCINTILLA_LIBRARY AND QSCINTILLA_INCLUDE_DIR)

        SET(QSCINTILLA_LIBRARIES ${QSCINTILLA_LIBRARY})
        SET(QSCINTILLA_FOUND TRUE)

        IF (CYGWIN)
            IF(BUILD_SHARED_LIBS)
            # No need to define QSCINTILLA_USE_DLL here, because it's default for Cygwin.
            ELSE(BUILD_SHARED_LIBS)
            SET (QSCINTILLA_DEFINITIONS -DQSCINTILLA_STATIC)
            ENDIF(BUILD_SHARED_LIBS)
        ENDIF (CYGWIN)

    ENDIF (QSCINTILLA_LIBRARY AND QSCINTILLA_INCLUDE_DIR)
ENDIF(QT4_FOUND)

IF (QSCINTILLA_FOUND)
  IF (NOT QScintilla_FIND_QUIETLY)
    MESSAGE(STATUS "Found QScintilla2: ${QSCINTILLA_LIBRARY}")
  ENDIF (NOT QScintilla_FIND_QUIETLY)
ELSE (QSCINTILLA_FOUND)
  IF (QScintilla_FIND_REQUIRED)
    MESSAGE(FATAL_ERROR "Could not find QScintilla library")
  ENDIF (QScintilla_FIND_REQUIRED)
ENDIF (QSCINTILLA_FOUND)

MARK_AS_ADVANCED(QSCINTILLA_INCLUDE_DIR QSCINTILLA_LIBRARY)

Version data entries

31 entries across 20 versions & 2 rubygems

Version Path
rock-qtbindings-4.8.6.5 ext/generator/cmake/FindQScintilla.cmake
rock-qtbindings-4.8.6.5 ext/cmake/modules/FindQScintilla.cmake
qtbindings-4.8.6.5 ext/generator/cmake/FindQScintilla.cmake
qtbindings-4.8.6.5 ext/cmake/modules/FindQScintilla.cmake
qtbindings-4.8.6.4 ext/cmake/modules/FindQScintilla.cmake
qtbindings-4.8.6.4 ext/generator/cmake/FindQScintilla.cmake
qtbindings-4.8.6.2 ext/generator/cmake/FindQScintilla.cmake
qtbindings-4.8.6.2 ext/cmake/modules/FindQScintilla.cmake
qtbindings-4.8.6.1 ext/generator/cmake/FindQScintilla.cmake
qtbindings-4.8.6.1 ext/cmake/modules/FindQScintilla.cmake
qtbindings-4.8.6.0 ext/generator/cmake/FindQScintilla.cmake
qtbindings-4.8.6.0 ext/cmake/modules/FindQScintilla.cmake
qtbindings-4.8.5.2 ext/generator/cmake/FindQScintilla.cmake
qtbindings-4.8.5.2 ext/cmake/modules/FindQScintilla.cmake
qtbindings-4.8.5.1 ext/cmake/modules/FindQScintilla.cmake
qtbindings-4.8.5.1 ext/generator/cmake/FindQScintilla.cmake
qtbindings-4.8.5.0 ext/cmake/modules/FindQScintilla.cmake
qtbindings-4.8.5.0 ext/generator/cmake/FindQScintilla.cmake
qtbindings-4.8.3.0-x86-mingw32 ext/generator/cmake/FindQScintilla.cmake
qtbindings-4.8.3.0-x86-mingw32 ext/cmake/modules/FindQScintilla.cmake