adapt to kaboutdata api changes
This commit is contained in:
parent
53c161fb58
commit
6043baef89
@ -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)
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
|
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user