diff --git a/src/declarativeimports/core/CMakeLists.txt b/src/declarativeimports/core/CMakeLists.txt index e580171ba..aea2aedcd 100644 --- a/src/declarativeimports/core/CMakeLists.txt +++ b/src/declarativeimports/core/CMakeLists.txt @@ -38,4 +38,4 @@ target_link_libraries(corebindingsplugin install(TARGETS corebindingsplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/plasma/core) install(FILES qmldir ToolTip.qml DESTINATION ${QML_INSTALL_DIR}/org/kde/plasma/core) -#add_subdirectory(tests) +add_subdirectory(tests) diff --git a/src/declarativeimports/core/tests/CMakeLists.txt b/src/declarativeimports/core/tests/CMakeLists.txt index d28925461..d6a88eb56 100644 --- a/src/declarativeimports/core/tests/CMakeLists.txt +++ b/src/declarativeimports/core/tests/CMakeLists.txt @@ -2,9 +2,11 @@ INCLUDE_DIRECTORIES( ${corebindings_SOURCE_DIR} ) -kde4_add_unit_test(sortfiltermodeltest +include(ECMMarkAsTest) + +add_executable(sortfiltermodeltest sortfiltermodeltest.cpp - ${corebindings_SOURCE_DIR}/dataengineconsumer.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../../plasma/dataengineconsumer.cpp ${corebindings_SOURCE_DIR}/datamodel.cpp ${corebindings_SOURCE_DIR}/datasource.cpp ) @@ -12,11 +14,16 @@ kde4_add_unit_test(sortfiltermodeltest qt4_automoc(sortfiltermodeltest.cpp) target_link_libraries(sortfiltermodeltest - ${KDE4_PLASMA_LIBS} + plasma + KDE4__kde4support ${QT_QTGUI_LIBRARY} ${QT_QTTEST_LIBRARY} ) + +add_test(plasma-sortfiltermodeltest sortfiltermodeltest) +ecm_mark_as_test(sortfiltermodeltest) + set(runnermodeltest_SRCS main.cpp dynamictreemodel.cpp @@ -25,6 +32,7 @@ set(runnermodeltest_SRCS ) qt4_automoc(${runnermodeltest_SRCS}) -#kde4_add_library(datamodelsplugin SHARED ${datamodels_SRCS}) -kde4_add_executable(runnermodeltest ${runnermodeltest_SRCS}) -target_link_libraries(runnermodeltest ${QT_QTTEST_LIBRARY} ${KDE4_PLASMA_LIBS}) +add_executable(runnermodeltest ${runnermodeltest_SRCS}) +target_link_libraries(runnermodeltest ${QT_QTTEST_LIBRARY} ${plasma_LIBRARIES} plasma) +add_test(plasma-runnermodeltest runnermodeltest) +ecm_mark_as_test(runnermodeltest)