File: CMakeLists.txt

package info (click to toggle)
kdevelop 4%3A5.6.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 57,892 kB
  • sloc: cpp: 278,773; javascript: 3,558; python: 3,385; sh: 1,317; ansic: 689; xml: 273; php: 95; makefile: 40; lisp: 13; sed: 12
file content (72 lines) | stat: -rw-r--r-- 2,759 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
remove_definitions(
    -DQT_NO_CAST_FROM_ASCII
    -DQT_NO_CAST_TO_ASCII
    -DQT_NO_CAST_FROM_BYTEARRAY
)

ecm_add_test(test_documentcontroller.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests)

ecm_add_test(test_uicontroller.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests)

ecm_add_test(test_shellbuddy.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime)

ecm_add_test(test_shelldocumentoperation.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime)

ecm_add_test(test_projectcontroller.cpp
    TEST_NAME test_projectcontroller
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Sublime KDev::Project KDev::Interfaces)

ecm_add_test(test_sessioncontroller.cpp
    LINK_LIBRARIES Qt5::Test KF5::KIOWidgets KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime)

set(TEST_PLUGIN_DIR "${CMAKE_CURRENT_BINARY_DIR}/testplugindir")
configure_file("testfilepaths.h.cmake" "testfilepaths.h" ESCAPE_QUOTES)

macro(KDEVSHELL_ADD_TEST_PLUGIN _PLUGIN_NAME)
    kdevplatform_add_plugin(${_PLUGIN_NAME} JSON plugins/${_PLUGIN_NAME}.testpluginjson SKIP_INSTALL SOURCES plugins/${_PLUGIN_NAME}.cpp)
    target_link_libraries(${_PLUGIN_NAME} Qt5::Core KDev::Interfaces)
    set_target_properties(${_PLUGIN_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${TEST_PLUGIN_DIR}/kdevplatform/${KDEV_PLUGIN_VERSION}")
endmacro()

kdevshell_add_test_plugin(nonguiinterfaceplugin)
kdevshell_add_test_plugin(projectdefaultplugin)
kdevshell_add_test_plugin(projectnondefaultplugin)
kdevshell_add_test_plugin(globaldefaultplugin)
kdevshell_add_test_plugin(globalnondefaultplugin)

ecm_add_test(test_plugincontroller.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime)

ecm_add_test(test_pluginenabling.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime)

ecm_add_test(test_testcontroller.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests)

ecm_add_test(test_ktexteditorpluginintegration.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Interfaces KDev::Sublime)

ecm_add_test(test_detectedproblem.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell KDev::Serialization)

ecm_add_test(test_problemmodelset.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell)

ecm_add_test(test_problemstorenode.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell)

ecm_add_test(test_problemstore.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell)

ecm_add_test(test_filteredproblemstore.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell)

ecm_add_test(test_problemmodel.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell)

ecm_add_test(test_checkerstatus.cpp
    LINK_LIBRARIES Qt5::Test KDev::Tests KDev::Shell)