Warning, /frameworks/knewstuff/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: KDE Contributors 0002 # SPDX-License-Identifier: BSD-2-Clause 0003 0004 include(ECMMarkAsTest) 0005 0006 find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} CONFIG REQUIRED Test Widgets Gui Quick) # Widgets for KMoreTools and Quick for the interactive KNS test 0007 0008 configure_file(khotnewstuff_test.knsrc.in khotnewstuff_test.knsrc @ONLY) 0009 0010 macro(knewstuff_executable_tests) 0011 foreach(_testname ${ARGN}) 0012 add_executable(${_testname} ${_testname}.cpp ../src/knewstuff_debug.cpp ../src/core/knewstuffcore_debug.cpp ../src/staticxml/staticxmlprovider.cpp) 0013 target_link_libraries(${_testname} KF5::NewStuffCore KF5::NewStuff KF5::I18n Qt${QT_MAJOR_VERSION}::Xml Qt${QT_MAJOR_VERSION}::Test Qt${QT_MAJOR_VERSION}::Quick Qt${QT_MAJOR_VERSION}::Gui) 0014 target_compile_definitions(${_testname} PRIVATE 0015 KNSSRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/" 0016 KNSBUILDDIR="${CMAKE_CURRENT_BINARY_DIR}") 0017 endforeach() 0018 endmacro() 0019 0020 knewstuff_executable_tests( 0021 khotnewstuff_test 0022 ) 0023 0024 # KMoreTools: 0025 add_executable(kmoretoolstest_interactive kmoretools/kmoretoolstest_interactive.cpp ../src/knewstuff_debug.cpp) 0026 ecm_mark_as_test(kmoretoolstest_interactive) 0027 target_link_libraries(kmoretoolstest_interactive Qt${QT_MAJOR_VERSION}::Test KF5::NewStuff KF5::I18n Qt${QT_MAJOR_VERSION}::Widgets KF5::KIOGui)