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

0001 find_package(Qt6Test ${REQUIRED_QT_VERSION} REQUIRED)
0002 set_package_properties(Qt6Test PROPERTIES PURPOSE "Required for tests")
0003 
0004 include(ECMAddTests)
0005 
0006 ########### a KParts ###############
0007 
0008 # don't use kcoreaddons_add_plugin here since we don't want to install it
0009 add_library(notepadpart MODULE)
0010 target_sources(notepadpart PRIVATE notepad.cpp notepad.qrc)
0011 # so we have to do the INSTALL_NAMESPACE thing by hand:
0012 set_target_properties(notepadpart PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/kf6/parts")
0013 target_link_libraries(notepadpart KF6::Parts KF6::I18n)
0014 
0015 ########### tests ###############
0016 
0017 ecm_add_tests(
0018   parttest.cpp
0019   partloadertest.cpp
0020   LINK_LIBRARIES KF6::Parts Qt6::Test KF6::XmlGui
0021 )