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(Qt${QT_MAJOR_VERSION}Test ${REQUIRED_QT_VERSION} CONFIG QUIET)
0006 
0007 if(NOT TARGET Qt${QT_MAJOR_VERSION}::Test)
0008     message(STATUS "Qt${QT_MAJOR_VERSION}Test not found, autotests will not be built.")
0009     return()
0010 endif()
0011 
0012 include_directories( Qt${QT_MAJOR_VERSION}Gui_PRIVATE_INCLUDE_DIRS )
0013 
0014 set(CONFIGFILE "${CMAKE_CURRENT_SOURCE_DIR}/kdeplatformtheme_kdeglobals")
0015 configure_file(kdeplatformtheme_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/kdeplatformtheme_config.h)
0016 
0017 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0018 
0019 macro(FRAMEWORKINTEGRATION_TESTS _testname)
0020     ecm_add_test(${_testname}.cpp ${ARGN}
0021                  LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KF5::ConfigWidgets KF5::ConfigCore KF5::IconThemes KF5::Style KF5::Notifications
0022                  TEST_NAME ${_testname}
0023                  NAME_PREFIX "frameworkintegration-")
0024     set_target_properties(${_testname} PROPERTIES COMPILE_FLAGS "-DUNIT_TEST")
0025 endmacro()
0026 
0027 frameworkintegration_tests(
0028   kstyle_unittest
0029 )
0030