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(Qt${QT_MAJOR_VERSION} ${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} Qt${QT_MAJOR_VERSION}::Test KF5::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 if (TARGET Qt6::Core5Compat) 0023 set(kcodecactiontest_libs Qt6::Core5Compat) 0024 endif() 0025 add_executable(kcodecactiontest kcodecactiontest.cpp) 0026 target_link_libraries(kcodecactiontest Qt${QT_MAJOR_VERSION}::Test KF5::ConfigWidgets ${kcodecactiontest_libs}) 0027 ecm_mark_as_test(kcodecactiontest) 0028 0029 ## kcolorutilsdemo 0030 0031 set(kcolorUtilsDemoSources kcolorutilsdemo.cpp kimageframe.cpp) 0032 qt_wrap_ui(kcolorUtilsDemoSources kcolorutilsdemo.ui) 0033 add_executable(kcolorutilsdemo ${kcolorUtilsDemoSources}) 0034 ecm_mark_as_test(kcolorutilsdemo) 0035 target_link_libraries(kcolorutilsdemo KF5::ConfigWidgets KF5::GuiAddons) 0036 0037 ## krecentfilesactiontest (manual) 0038 0039 set(krecentfilesactionTestSources krecentfilesactiontest.cpp) 0040 qt_wrap_ui(krecentfilesactionTestSources krecentfilesactiontest.ui) 0041 add_executable(krecentfilesactiontest ${krecentfilesactionTestSources}) 0042 ecm_mark_as_test(krecentfilesactiontest) 0043 target_link_libraries(krecentfilesactiontest KF5::ConfigWidgets)