Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/shell/tests/CMakeLists.txt
Show All 13 Lines | 13 | ecm_add_test(test_projectcontroller.cpp | |||
---|---|---|---|---|---|
14 | TEST_NAME test_projectcontroller | 14 | TEST_NAME test_projectcontroller | ||
15 | LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Sublime KDev::Project KDev::Interfaces) | 15 | LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Sublime KDev::Project KDev::Interfaces) | ||
16 | 16 | | |||
17 | ecm_add_test(test_sessioncontroller.cpp | 17 | ecm_add_test(test_sessioncontroller.cpp | ||
18 | LINK_LIBRARIES Qt5::Test KF5::KIOWidgets KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) | 18 | LINK_LIBRARIES Qt5::Test KF5::KIOWidgets KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) | ||
19 | 19 | | |||
20 | set(TEST_PLUGIN_DIR "${CMAKE_CURRENT_BINARY_DIR}/testplugindir") | 20 | set(TEST_PLUGIN_DIR "${CMAKE_CURRENT_BINARY_DIR}/testplugindir") | ||
21 | configure_file("testfilepaths.h.cmake" "testfilepaths.h" ESCAPE_QUOTES) | 21 | configure_file("testfilepaths.h.cmake" "testfilepaths.h" ESCAPE_QUOTES) | ||
22 | kdevplatform_add_plugin(kdevnonguiinterfaceplugin JSON kdevnonguiinterfaceplugin.json SKIP_INSTALL SOURCES nonguiinterfaceplugin.cpp) | 22 | | ||
23 | target_link_libraries(kdevnonguiinterfaceplugin Qt5::Core KDev::Interfaces) | 23 | macro(KDEVSHELL_ADD_TEST_PLUGIN _PLUGIN_NAME) | ||
24 | set_target_properties(kdevnonguiinterfaceplugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${TEST_PLUGIN_DIR}/kdevplatform/${KDEV_PLUGIN_VERSION}") | 24 | kdevplatform_add_plugin(${_PLUGIN_NAME} JSON plugins/${_PLUGIN_NAME}.testpluginjson SKIP_INSTALL SOURCES plugins/${_PLUGIN_NAME}.cpp) | ||
25 | target_link_libraries(${_PLUGIN_NAME} Qt5::Core KDev::Interfaces) | ||||
26 | set_target_properties(${_PLUGIN_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${TEST_PLUGIN_DIR}/kdevplatform/${KDEV_PLUGIN_VERSION}") | ||||
27 | endmacro() | ||||
28 | | ||||
29 | kdevshell_add_test_plugin(nonguiinterfaceplugin) | ||||
30 | kdevshell_add_test_plugin(projectdefaultplugin) | ||||
31 | kdevshell_add_test_plugin(projectnondefaultplugin) | ||||
32 | kdevshell_add_test_plugin(globaldefaultplugin) | ||||
33 | kdevshell_add_test_plugin(globalnondefaultplugin) | ||||
25 | 34 | | |||
26 | ecm_add_test(test_plugincontroller.cpp | 35 | ecm_add_test(test_plugincontroller.cpp | ||
27 | LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) | 36 | LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) | ||
28 | 37 | | |||
38 | ecm_add_test(test_pluginenabling.cpp | ||||
39 | LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) | ||||
40 | | ||||
29 | ecm_add_test(test_testcontroller.cpp | 41 | ecm_add_test(test_testcontroller.cpp | ||
30 | LINK_LIBRARIES Qt5::Test KDev::Tests) | 42 | LINK_LIBRARIES Qt5::Test KDev::Tests) | ||
31 | 43 | | |||
32 | ecm_add_test(test_ktexteditorpluginintegration.cpp | 44 | ecm_add_test(test_ktexteditorpluginintegration.cpp | ||
33 | LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) | 45 | LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime) | ||
34 | 46 | | |||
35 | ecm_add_test(test_detectedproblem.cpp | 47 | ecm_add_test(test_detectedproblem.cpp | ||
36 | LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Serialization) | 48 | LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Serialization) | ||
Show All 18 Lines |