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

0001 include(ECMMarkAsTest)
0002 
0003 find_package(Qt${QT_MAJOR_VERSION}Test REQUIRED)
0004 
0005 add_executable(kdeclarativetest kdeclarativetest.cpp)
0006 
0007 target_include_directories(kdeclarativetest
0008   PUBLIC
0009     ${CMAKE_CURRENT_SOURCE_DIR}/../src
0010     ${CMAKE_CURRENT_BINARY_DIR}/..
0011 )
0012 
0013 ecm_mark_as_test(kdeclarativetest)
0014 target_link_libraries(kdeclarativetest
0015    Qt${QT_MAJOR_VERSION}::Quick
0016    Qt${QT_MAJOR_VERSION}::Test
0017    KF5::I18n
0018 )
0019 
0020 
0021 add_executable(qimageitemtest qimageitemtest.cpp)
0022 
0023 ecm_mark_as_test(qimageitemtest)
0024 target_link_libraries(qimageitemtest
0025    Qt${QT_MAJOR_VERSION}::Quick
0026    Qt${QT_MAJOR_VERSION}::Test
0027 )
0028 
0029 if (BUILD_EXAMPLES)
0030     kpackage_install_package(helloworld org.kde.example.helloworld genericqml)
0031     kpackage_install_package(helloworldnowindow org.kde.example.helloworldnowindow genericqml)
0032 endif()
0033