Files
RedBear-OS/local/recipes/kde/kf6-knewstuff/source/autotests/CMakeLists.txt
T
vasilito edb68153e3 milestone: 22 KF6 enabled, blake3 placeholders removed, text-login fixed
- kf6-knewstuff/kwallet: removed all-zero blake3 placeholders
- CONSOLE-TO-KDE-DESKTOP-PLAN.md: 20→22 KF6 enabled count
- BOOT-PROCESS-IMPROVEMENT-PLAN.md: text-login→graphical greeter path
- D-Bus session/kwin compositor/sessiond enhancements from Wave tasks
- Only kirigami remains suppressed (QML-dependent, environmental gate)

Zero warnings. 24 commits total.
2026-04-29 14:48:47 +01:00

33 lines
1.1 KiB
CMake

# SPDX-FileCopyrightText: KDE Contributors
# SPDX-License-Identifier: BSD-2-Clause
include(ECMMarkAsTest)
include(ECMMarkNonGuiExecutable)
include(ECMAddTests)
find_package(Qt6Test ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED)
set_package_properties(Qt6Test PROPERTIES
TYPE REQUIRED
PURPOSE "Required for unit tests")
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/../src ../src )
add_library(knewstuff_test_static STATIC ${CMAKE_BINARY_DIR}/src/core/knewstuffcore_debug.cpp)
target_link_libraries(knewstuff_test_static PUBLIC Qt6::Xml Qt6::Test Qt6::Gui KF6::I18n KF6::NewStuffCore KF6::ConfigCore KF6::Archive KF6::Package knscore_jobs_static)
macro(knewstuff_unit_tests)
foreach(_testmain ${ARGN})
get_filename_component(_testname ${_testmain} NAME_WE)
ecm_add_test(${_testmain}
TEST_NAME ${_testname}
NAME_PREFIX "knewstuff-")
target_compile_definitions(${_testname} PUBLIC -DDATA_DIR="${CMAKE_CURRENT_BINARY_DIR}/data/")
target_link_libraries(${_testname} knewstuff_test_static)
endforeach()
endmacro()
knewstuff_unit_tests(
knewstuffentrytest.cpp
)
add_subdirectory(core)