Commit bd8f77e9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Build test/autotest if BUILD_TESTING is defined

parent 8403b96a
......@@ -27,4 +27,6 @@ target_link_libraries(org.kde.plasma.private.systemtray
install(TARGETS org.kde.plasma.private.systemtray DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/applets)
add_subdirectory(container)
add_subdirectory(tests)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
add_definitions(-DTRANSLATION_DOMAIN=\"kio_desktop\")
add_subdirectory(tests)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
add_library(kio_desktop MODULE kio_desktop.cpp)
......
......@@ -100,5 +100,7 @@ endif ()
install(TARGETS plasma_engine_clipboard DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/dataengine)
install(FILES plasma-dataengine-clipboard.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES org.kde.plasma.clipboard.operations DESTINATION ${PLASMA_DATA_INSTALL_DIR}/services)
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
add_subdirectory(autotests)
......@@ -8,7 +8,9 @@ configure_file(config-ksmserver.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksmse
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_subdirectory(logout-greeter)
add_subdirectory(switchuser-greeter)
add_subdirectory(tests)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
########### next target ###############
......
......@@ -16,4 +16,6 @@ target_link_libraries(ksmserver-logout-greeter
)
install(TARGETS ksmserver-logout-greeter DESTINATION ${KDE_INSTALL_LIBEXECDIR})
add_subdirectory(tests)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
add_subdirectory(declarative)
add_subdirectory(kded)
add_subdirectory(autotests)
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
set(colorcorrect_LIB_SRCS
compositorcoloradaptor.cpp
......
add_subdirectory(declarative)
add_subdirectory(autotests)
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
set(taskmanager_LIB_SRCS
abstracttasksmodel.cpp
......
......@@ -44,4 +44,6 @@ install(TARGETS krunner_bookmarksrunner DESTINATION ${KDE_INSTALL_PLUGINDIR} )
install(FILES plasma-runner-bookmarks.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
# Currently tests include only chrome, so no need to get include them if json is not found
add_subdirectory(tests)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
......@@ -34,4 +34,6 @@ install(TARGETS krunner_services DESTINATION ${KDE_INSTALL_PLUGINDIR} )
install(FILES plasma-runner-services.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
add_subdirectory(autotests)
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
......@@ -112,4 +112,6 @@ install(FILES
DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR})
add_subdirectory(packageplugins)
add_subdirectory(autotests)
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
......@@ -27,7 +27,9 @@ target_link_libraries(plasma_wallpaper_imageplugin
KF5::GuiAddons
)
add_subdirectory(autotests)
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
install(TARGETS plasma_wallpaper_imageplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/wallpapers/image)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment