fix build

This commit is contained in:
Marco Martin 2014-05-19 18:29:41 +02:00
parent 48aa4e9186
commit fd87694c8d
5 changed files with 5 additions and 4 deletions

View File

@ -41,7 +41,7 @@ endif()
set (REQUIRED_QT_VERSION "5.2.0") set (REQUIRED_QT_VERSION "5.2.0")
find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Quick Sql Qml Widgets Svg Script) find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Quick Gui Sql Qml Widgets Svg Script)
find_package(KF5Activities ${KF5_DEP_VERSION} REQUIRED) find_package(KF5Activities ${KF5_DEP_VERSION} REQUIRED)
find_package(KF5Archive ${KF5_DEP_VERSION} REQUIRED) find_package(KF5Archive ${KF5_DEP_VERSION} REQUIRED)

View File

@ -35,7 +35,7 @@ PLASMA_UNIT_TESTS(
) )
add_executable(storagetest storagetest.cpp ../src/plasma/private/storage.cpp ../src/plasma/private/storagethread.cpp) add_executable(storagetest storagetest.cpp ../src/plasma/private/storage.cpp ../src/plasma/private/storagethread.cpp)
target_link_libraries(storagetest Qt5::Test Qt5::Sql KF5::KIOCore KF5::Plasma KF5::CoreAddons ) target_link_libraries(storagetest Qt5::Gui Qt5::Test Qt5::Sql KF5::KIOCore KF5::Plasma KF5::CoreAddons )
add_test(plasma-storagetest storagetest) add_test(plasma-storagetest storagetest)
ecm_mark_as_test(storagetest) ecm_mark_as_test(storagetest)

View File

@ -36,6 +36,7 @@ target_include_directories(KF5PlasmaQuick PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURR
target_link_libraries(KF5PlasmaQuick target_link_libraries(KF5PlasmaQuick
PUBLIC PUBLIC
Qt5::Gui
Qt5::Quick Qt5::Quick
Qt5::Qml Qt5::Qml
KF5::Plasma KF5::Plasma

View File

@ -3,7 +3,7 @@ add_executable(plugintest
plugintest.cpp plugintest.cpp
) )
target_link_libraries(plugintest KF5::Plasma KF5::I18n KF5::Service Qt5::DBus) target_link_libraries(plugintest KF5::Plasma KF5::I18n KF5::Service Qt5::DBus Qt5::Gui)
#install(TARGETS plugintest ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) #install(TARGETS plugintest ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})

View File

@ -58,7 +58,7 @@ public:
}; };
PluginTest::PluginTest(int &argc, char **argv, QCommandLineParser *parser) : PluginTest::PluginTest(int &argc, char **argv, QCommandLineParser *parser) :
QApplication(argc, argv) QGuiApplication(argc, argv)
{ {
d = new PluginTestPrivate; d = new PluginTestPrivate;
d->parser = parser; d->parser = parser;