### Configure KColorUtilsDemo Executable Source: https://github.com/kde/kconfigwidgets/blob/master/tests/CMakeLists.txt Sets up the sources for the kcolorutilsdemo executable, wraps UI files, adds the executable, marks it as a test, and links it against KF6::ConfigWidgets and KF6::GuiAddons. ```cmake set(kcolorUtilsDemoSources kcolorutilsdemo.cpp kimageframe.cpp) qt_wrap_ui(kcolorUtilsDemoSources kcolorutilsdemo.ui) add_executable(kcolorutilsdemo ${kcolorUtilsDemoSources}) ecm_mark_as_test(kcolorutilsdemo) target_link_libraries(kcolorutilsdemo KF6::ConfigWidgets KF6::GuiAddons) ``` -------------------------------- ### Configure KRecentFilesActionTest Executable Source: https://github.com/kde/kconfigwidgets/blob/master/tests/CMakeLists.txt Sets up the sources for the krecentfilesactiontest executable, wraps UI files, adds the executable, marks it as a test, and links it against KF6::ConfigWidgets. ```cmake set(krecentfilesactionTestSources krecentfilesactiontest.cpp) qt_wrap_ui(krecentfilesactionTestSources krecentfilesactiontest.ui) add_executable(krecentfilesactiontest ${krecentfilesactionTestSources}) ecm_mark_as_test(krecentfilesactiontest) target_link_libraries(krecentfilesactiontest KF6::ConfigWidgets) ``` -------------------------------- ### Define KConfigWidgets Executable Tests Source: https://github.com/kde/kconfigwidgets/blob/master/tests/CMakeLists.txt Defines a macro to create executables for KConfigWidgets tests. It adds the test executable, links it against Qt6::Test and KF6::ConfigWidgets, and marks it as a test using ecm_mark_as_test. ```cmake macro(kconfigwidgets_executable_tests) foreach(_testname ${ARGN}) add_executable(${_testname} ${_testname}.cpp) target_link_libraries(${_testname} Qt6::Test KF6::ConfigWidgets) ecm_mark_as_test(${_testname}) endforeach(_testname) endmacro() ``` -------------------------------- ### Add KCodecActionTest Executable Source: https://github.com/kde/kconfigwidgets/blob/master/tests/CMakeLists.txt Adds a specific executable for kcodecactiontest, linking it against Qt6::Test and KF6::ConfigWidgets, and marking it as a test. ```cmake add_executable(kcodecactiontest kcodecactiontest.cpp) target_link_libraries(kcodecactiontest Qt6::Test KF6::ConfigWidgets) ecm_mark_as_test(kcodecactiontest) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.