Remove no longer used Find*.cmake for QtDeclarative/QtLocation/QtMobility

parent 92ad8cf7
if (NOT QT_QTDECLARATIVE_FOUND)
find_path(QT_QTDECLARATIVE_INCLUDE_DIR NAMES QtDeclarative PATHS ${QT_HEADERS_DIR}/QtDeclarative NO_DEFAULT_PATH)
find_library(QT_QTDECLARATIVE_LIBRARY NAMES QtDeclarative HINTS ${QT_LIBRARY_DIR})
if (QT_QTDECLARATIVE_INCLUDE_DIR AND QT_QTDECLARATIVE_LIBRARY)
set(QT_QTDECLARATIVE_FOUND ON)
endif ()
endif ()
# - Find Qt Location libs
#
# This module determines whether QtLocation is installed.
#
# Copyright (c) 2011, Daniel Marth, <danielmarth@gmx.at>
# Copyright (c) 2011, Bernhard Beschow, <bbeschow@cs.tu-berlin.de>
#
# try using pkg-config first
include(FindPkgConfig)
pkg_check_modules(QtLocation QtLocation>=1.0.1)
IF(QtLocation_FOUND)
SET(QTLOCATION_FOUND ${QtLocation_FOUND})
SET(QTLOCATION_INCLUDE_DIR ${QtLocation_INCLUDE_DIRS})
SET(QTLOCATION_LIBRARIES ${QtLocation_LIBRARIES})
ENDIF(QtLocation_FOUND)
# no success using pkg-config, try manually
IF(NOT QTLOCATION_FOUND)
FIND_PACKAGE(QtMobility)
IF(QTMOBILITY_FOUND)
FIND_PATH(QTLOCATION_INCLUDE_DIR NAMES QGeoPositionInfoSource PATH_SUFFIXES QtLocation)
FIND_LIBRARY(QTLOCATION_LIBRARIES NAMES QtLocation)
ENDIF(QTMOBILITY_FOUND)
FIND_PACKAGE_HANDLE_STANDARD_ARGS( QtLocation DEFAULT_MSG QTLOCATION_INCLUDE_DIR QTLOCATION_LIBRARIES )
ENDIF(NOT QTLOCATION_FOUND)
# - Find Qt Mobility libs
#
# This module determines whether QtMobility is installed.
#
# Copyright (c) 2011, Daniel Marth, <danielmarth@gmx.at>
#
FIND_PATH( QTMOBILITY_INCLUDE_DIR NAMES qmobilityglobal.h PATH_SUFFIXES QtMobility )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( QtMobility DEFAULT_MSG QTMOBILITY_INCLUDE_DIR )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment