Warning, /frameworks/kconfigwidgets/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include(ECMAddTests)
0002 include(ECMMarkAsTest)
0003 
0004 find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Test)
0005 
0006 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0007 
0008 macro(kconfigwidgets_executable_tests)
0009   foreach(_testname ${ARGN})
0010     add_executable(${_testname} ${_testname}.cpp)
0011     target_link_libraries(${_testname} Qt6::Test KF6::ConfigWidgets)
0012     ecm_mark_as_test(${_testname})
0013   endforeach(_testname)
0014 endmacro()
0015 
0016 kconfigwidgets_executable_tests(
0017    kcolorschemedemo
0018    klanguagebuttontest
0019    kcommandbartest
0020 )
0021 
0022 add_executable(kcodecactiontest kcodecactiontest.cpp)
0023 target_link_libraries(kcodecactiontest Qt6::Test KF6::ConfigWidgets)
0024 ecm_mark_as_test(kcodecactiontest)
0025 
0026 ## kcolorutilsdemo
0027 
0028 set(kcolorUtilsDemoSources kcolorutilsdemo.cpp kimageframe.cpp)
0029 qt_wrap_ui(kcolorUtilsDemoSources kcolorutilsdemo.ui)
0030 add_executable(kcolorutilsdemo ${kcolorUtilsDemoSources})
0031 ecm_mark_as_test(kcolorutilsdemo)
0032 target_link_libraries(kcolorutilsdemo KF6::ConfigWidgets KF6::GuiAddons)
0033 
0034 ## krecentfilesactiontest (manual)
0035 
0036 set(krecentfilesactionTestSources krecentfilesactiontest.cpp)
0037 qt_wrap_ui(krecentfilesactionTestSources krecentfilesactiontest.ui)
0038 add_executable(krecentfilesactiontest ${krecentfilesactionTestSources})
0039 ecm_mark_as_test(krecentfilesactiontest)
0040 target_link_libraries(krecentfilesactiontest KF6::ConfigWidgets)