Warning, /frameworks/kparts/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 find_package(Qt${QT_MAJOR_VERSION}Test ${REQUIRED_QT_VERSION} REQUIRED) 0002 set_package_properties(Qt${QT_MAJOR_VERSION}Test 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}/kf${QT_MAJOR_VERSION}/parts") 0013 kcoreaddons_desktop_to_json(notepadpart notepad.desktop) 0014 target_link_libraries(notepadpart KF5::Parts) 0015 0016 ########### tests ############### 0017 0018 ecm_add_tests( 0019 parttest.cpp 0020 partloadertest.cpp 0021 openorsavequestion_unittest.cpp 0022 LINK_LIBRARIES KF5::Parts Qt${QT_MAJOR_VERSION}::Test KF5::XmlGui 0023 )