mirror of
https://github.com/reactos/CMake.git
synced 2024-12-01 15:30:40 +00:00
Remove QtGui dependency in Qt4Deploy test and verify QtSql existance.
This commit is contained in:
parent
52e8279648
commit
ab9661c1dd
@ -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)
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include <QCoreApplication>
|
||||
#include <QImageReader>
|
||||
#include <QSqlDatabase>
|
||||
#include <QLibraryInfo>
|
||||
#include <QDebug>
|
||||
#include <QStringList>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user