Build test/autotest if BUILD_TESTING is defined

wilder-5.14
Laurent Montel 8 years ago
parent 8403b96aee
commit bd8f77e9cf
  1. 4
      applets/systemtray/CMakeLists.txt
  2. 4
      kioslave/desktop/CMakeLists.txt
  3. 4
      klipper/CMakeLists.txt
  4. 4
      ksmserver/CMakeLists.txt
  5. 4
      ksmserver/logout-greeter/CMakeLists.txt
  6. 4
      libcolorcorrect/CMakeLists.txt
  7. 4
      libtaskmanager/CMakeLists.txt
  8. 4
      runners/bookmarks/CMakeLists.txt
  9. 4
      runners/services/CMakeLists.txt
  10. 4
      shell/CMakeLists.txt
  11. 4
      wallpapers/image/CMakeLists.txt

@ -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()

@ -1,6 +1,8 @@
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()

@ -1,6 +1,8 @@
add_subdirectory(declarative)
add_subdirectory(kded)
add_subdirectory(autotests)
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
set(colorcorrect_LIB_SRCS
compositorcoloradaptor.cpp

@ -1,5 +1,7 @@
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)

Loading…
Cancel
Save