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

0001 include(ECMMarkAsTest)
0002 include(ECMMarkNonGuiExecutable)
0003 include(ECMAddTests)
0004 
0005 find_package(Qt6Test ${REQUIRED_QT_VERSION} CONFIG QUIET)
0006 
0007 if(NOT TARGET Qt6::Test)
0008     message(STATUS "Qt6Test not found, autotests will not be built.")
0009     return()
0010 endif()
0011 
0012 set(CONFIGFILE "${CMAKE_CURRENT_SOURCE_DIR}/kdeplatformtheme_kdeglobals")
0013 configure_file(kdeplatformtheme_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/kdeplatformtheme_config.h)
0014 
0015 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0016 
0017 macro(FRAMEWORKINTEGRATION_TESTS _testname)
0018     ecm_add_test(${_testname}.cpp ${ARGN}
0019                  LINK_LIBRARIES Qt6::Test KF6::ConfigCore KF6::IconThemes KF6::Style KF6::Notifications
0020                  TEST_NAME ${_testname}
0021                  NAME_PREFIX "frameworkintegration-")
0022     set_target_properties(${_testname} PROPERTIES COMPILE_FLAGS "-DUNIT_TEST")
0023 endmacro()
0024 
0025 frameworkintegration_tests(
0026   kstyle_unittest
0027 )
0028