Remove QtGui dependency in Qt4Deploy test and verify QtSql existance.

This commit is contained in:
Clinton Stimpson 2012-02-29 07:55:31 -07:00
parent 52e8279648
commit ab9661c1dd
3 changed files with 3 additions and 3 deletions

View File

@ -268,7 +268,7 @@ IF(BUILD_TESTING)
# run test for DeployQt4 on supported platforms/compilers (which depends on BundleUtilities)
# this test also depends on the existence of the standard qtiff plugin
if(QT4_WORKS)
if(QT4_WORKS AND QT_QTSQL_FOUND)
ADD_TEST(Qt4Deploy ${CMAKE_CTEST_COMMAND}
--build-and-test
"${CMake_SOURCE_DIR}/Tests/Qt4Deploy"

View File

@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
project(Qt4Deploy)
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/install)
find_package(Qt4 REQUIRED QtMain QtCore QtGui QtSql)
find_package(Qt4 REQUIRED QtMain QtCore QtSql)
include(${QT_USE_FILE})
add_executable(testdeploy MACOSX_BUNDLE testdeploy.cpp)

View File

@ -1,8 +1,8 @@
#include <QCoreApplication>
#include <QImageReader>
#include <QSqlDatabase>
#include <QLibraryInfo>
#include <QDebug>
#include <QStringList>
int main(int argc, char** argv)
{