adapt to kaboutdata api changes

This commit is contained in:
Marco Martin 2013-03-05 14:43:14 +01:00
parent 53c161fb58
commit 6043baef89
3 changed files with 6 additions and 2 deletions

View File

@ -4,11 +4,13 @@ include_directories ( ${karchive_SOURCE_DIR}/src
${karchive_BINARY_DIR}/src
)
find_package(KCoreAddons REQUIRED)
MACRO(PLASMA_UNIT_TESTS)
FOREACH(_testname ${ARGN})
kde4_add_unit_test(${_testname} TESTNAME plasma-${_testname} ${_testname}.cpp)
target_link_libraries(${_testname} ${QT_QTTEST_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY}
${KDE4_KIO_LIBS} ${KDE4_KDEUI_LIBS} plasma ${KArchive_LIBRARIES} )
${KDE4_KIO_LIBS} ${KDE4_KDEUI_LIBS} plasma ${KArchive_LIBRARIES} ${KCoreAddons_LIBRARIES})
if(QT_QTOPENGL_FOUND)
target_link_libraries(${_testname} ${QT_QTOPENGL_LIBRARY})
endif(QT_QTOPENGL_FOUND)

View File

@ -19,6 +19,7 @@ add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
find_package(Qt5Transitional REQUIRED Core)
find_package(Qt5Qml REQUIRED)
find_package(Qt5Quick REQUIRED)
find_package(KCoreAddons REQUIRED)
# The Qt5Widgets_INCLUDES also includes the include directories for
@ -48,6 +49,7 @@ target_link_libraries(testplasma2
${Qt5Qml_LIBRARIES}
${KDE4_KDECORE_LIBS}
${KWindowSystem_LIBRARIES}
${KCoreAddons_LIBRARIES}
plasma
)

View File

@ -37,7 +37,7 @@ static const char version[] = "1.0";
int main(int argc, char** argv)
{
KAboutData aboutData("testplasma2", 0, ki18n("Plasma2 test app"),
KAboutData aboutData("testplasma2", QString(), ki18n("Plasma2 test app"),
version, ki18n(description), KAboutData::License_GPL,
ki18n("Copyright 2012, The KDE Team"));
aboutData.addAuthor(ki18n("Marco Martin"),