Warning, /kdevelop/kdevelop/kdevplatform/shell/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 remove_definitions( 0002 -DQT_NO_CAST_FROM_ASCII 0003 -DQT_NO_CAST_TO_ASCII 0004 -DQT_NO_CAST_FROM_BYTEARRAY 0005 ) 0006 0007 ecm_add_test(test_documentcontroller.cpp 0008 LINK_LIBRARIES Qt5::Test KDev::Tests) 0009 0010 ecm_add_test(test_uicontroller.cpp 0011 LINK_LIBRARIES Qt5::Test KDev::Tests) 0012 0013 ecm_add_test(test_shellbuddy.cpp 0014 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) 0015 0016 ecm_add_test(test_shelldocumentoperation.cpp 0017 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) 0018 0019 ecm_add_test(test_projectcontroller.cpp 0020 TEST_NAME test_projectcontroller 0021 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Sublime KDev::Project KDev::Interfaces) 0022 0023 ecm_add_test(test_sessioncontroller.cpp 0024 LINK_LIBRARIES Qt5::Test KF5::KIOWidgets KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) 0025 0026 set(TEST_PLUGIN_DIR "${CMAKE_CURRENT_BINARY_DIR}/testplugindir") 0027 configure_file("testfilepaths.h.cmake" "testfilepaths.h" ESCAPE_QUOTES) 0028 0029 macro(KDEVSHELL_ADD_TEST_PLUGIN _PLUGIN_NAME) 0030 kdevplatform_add_plugin(${_PLUGIN_NAME} SKIP_INSTALL SOURCES plugins/${_PLUGIN_NAME}.cpp) 0031 target_link_libraries(${_PLUGIN_NAME} Qt5::Core KDev::Interfaces) 0032 set_target_properties(${_PLUGIN_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${TEST_PLUGIN_DIR}/kdevplatform/${KDEV_PLUGIN_VERSION}") 0033 endmacro() 0034 0035 kdevshell_add_test_plugin(nonguiinterfaceplugin) 0036 kdevshell_add_test_plugin(projectdefaultplugin) 0037 kdevshell_add_test_plugin(projectnondefaultplugin) 0038 kdevshell_add_test_plugin(globaldefaultplugin) 0039 kdevshell_add_test_plugin(globalnondefaultplugin) 0040 0041 ecm_add_test(test_plugincontroller.cpp 0042 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) 0043 0044 ecm_add_test(test_pluginenabling.cpp 0045 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) 0046 0047 ecm_add_test(test_testcontroller.cpp 0048 LINK_LIBRARIES Qt5::Test KDev::Tests) 0049 0050 ecm_add_test(test_workingsets.cpp 0051 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell kdevworkingsets) 0052 0053 ecm_add_test(test_ktexteditorpluginintegration.cpp 0054 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) 0055 0056 ecm_add_test(test_detectedproblem.cpp 0057 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Serialization) 0058 0059 ecm_add_test(test_problemmodelset.cpp 0060 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell) 0061 0062 ecm_add_test(test_problemstorenode.cpp 0063 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell) 0064 0065 ecm_add_test(test_problemstore.cpp 0066 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell) 0067 0068 ecm_add_test(test_filteredproblemstore.cpp 0069 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell) 0070 0071 ecm_add_test(test_problemmodel.cpp 0072 LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell) 0073 0074 add_library(languagecontrollertestbase STATIC 0075 languagecontrollertestbase.cpp) 0076 target_link_libraries(languagecontrollertestbase PUBLIC 0077 Qt5::Test KDev::Tests) 0078 0079 ecm_add_test(test_languagecontroller.cpp LINK_LIBRARIES languagecontrollertestbase) 0080 if(NOT WIN32) 0081 find_package(Threads REQUIRED) 0082 target_link_libraries(test_languagecontroller Threads::Threads) 0083 endif() 0084 0085 if(BUILD_BENCHMARKS) 0086 ecm_add_test(bench_languagecontroller.cpp LINK_LIBRARIES languagecontrollertestbase) 0087 set_tests_properties(bench_languagecontroller PROPERTIES TIMEOUT 30) 0088 endif()