Commit ab9661c1 authored by Clinton Stimpson's avatar Clinton Stimpson
Browse files

Remove QtGui dependency in Qt4Deploy test and verify QtSql existance.

parent 52e82796
......@@ -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"
......
......@@ -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)
......
#include <QCoreApplication>
#include <QImageReader>
#include <QSqlDatabase>
#include <QLibraryInfo>
#include <QDebug>
#include <QStringList>
int main(int argc, char** argv)
{
......
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