CMakeLists.txt 4.92 KB
Newer Older
1
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
2 3
add_subdirectory(kconfig_compiler)

4
include_directories( ${KDE4_KDEUI_INCLUDES} proxymodeltestsuite )
5

6 7 8 9
# QtTest needs this in order to include the gui stuff.
# The alternative (which requires Qt>=4.6) is #include <QTestGui>
add_definitions(-DQT_GUI_LIB)

10
option(MAC_USE_OSXKEYCHAIN "On OS X, use the keychain as backend for kwallet, instead of kwalletd.")
11

12
MACRO(KDEUI_UNIT_TESTS)
David Faure's avatar
David Faure committed
13
       FOREACH(_testname ${ARGN})
14
               kde4_add_unit_test(${_testname} TESTNAME kdeui-${_testname} ${_testname}.cpp)
15
               target_link_libraries(${_testname} ${KDE4_KDEUI_LIBS} ${QT_QTTEST_LIBRARY} ${QT_QTXML_LIBRARY} ${KDEWIN_LIBRARIES})
David Faure's avatar
David Faure committed
16
       ENDFOREACH(_testname)
17 18
ENDMACRO(KDEUI_UNIT_TESTS)
MACRO(KDEUI_EXECUTABLE_TESTS)
David Faure's avatar
David Faure committed
19
       FOREACH(_testname ${ARGN})
20
               kde4_add_executable(${_testname} TEST ${_testname}.cpp)
21
               target_link_libraries(${_testname} ${KDE4_KDEUI_LIBS} ${QT_QTTEST_LIBRARY} ${QT_QTXML_LIBRARY} ${KDEWIN_LIBRARIES})
David Faure's avatar
David Faure committed
22
       ENDFOREACH(_testname)
23
ENDMACRO(KDEUI_EXECUTABLE_TESTS)
David Faure's avatar
David Faure committed
24

25
SET(proxyModelTestSources
26
  kselectionproxymodeltestsuite.cpp
27 28
)

29 30
add_subdirectory(proxymodeltestsuite)

31 32
MACRO(KDEUI_PROXYMODEL_TESTS)
       FOREACH(_testname ${ARGN})
33
               kde4_add_unit_test(${_testname} TESTNAME kdeui-${_testname} ${_testname}.cpp ${proxyModelTestSources} )
34
               target_link_libraries(${_testname} ${KDE4_KDEUI_LIBS} ${QT_QTTEST_LIBRARY} ${QT_QTXML_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${KDEWIN32_LIBRARIES} proxymodeltestsuite )
35 36 37 38
       ENDFOREACH(_testname)
ENDMACRO(KDEUI_PROXYMODEL_TESTS)


39
KDEUI_UNIT_TESTS(
David Faure's avatar
David Faure committed
40
  kactioncollectiontest
41
  kactioncategorytest
David Faure's avatar
David Faure committed
42 43 44 45
  kbuttongrouptest
  kcompletioncoretest
  kconfigguitest
  kconfigskeletontest
Aurélien Gâteau's avatar
Aurélien Gâteau committed
46
  kdualactiontest
47
  kfadewidgeteffecttest
David Faure's avatar
David Faure committed
48 49
  kfindtest
  kglobalsettingstest
50
  kglobalshortcuttest
David Faure's avatar
David Faure committed
51
  kmainwindow_unittest
52
  klineedit_unittest
53
  ktextedit_unittest
54
  kcombobox_unittest
55
  kdialog_unittest
David Faure's avatar
David Faure committed
56 57 58
  kreplacetest
  kshortcuttest
  kstandardactiontest
59
  kstandardshortcuttest
David Faure's avatar
David Faure committed
60
  kuniqueapptest
Allen Winter's avatar
Allen Winter committed
61
  kwordwraptest
62
  kapplication_unittest
63
  kstartupinfo_unittest
64
  kcolorutilstest
65
  kxmlgui_unittest
66
  ktimezonewidget_unittest
67
  kiconloader_unittest
68
  ktabwidget_unittest
69
  ktoolbar_unittest
70
  krichtextedittest
71
  kselectaction_unittest
72
  klistwidgetsearchlinetest
73 74 75
  ktimecomboboxtest
  kdatecomboboxtest
  kdatetimeedittest
76
  kconfigdialog_unittest
77
  kcolorbuttontest
78
  klinkitemselectionmodeltest
David Faure's avatar
David Faure committed
79 80
)

81
KDEUI_PROXYMODEL_TESTS(
82
  kdescendantsproxymodeltest
83
  kselectionproxymodeltest
84
  testmodelqueuedconnections
85 86
)

87
KDEUI_EXECUTABLE_TESTS(
Aaron J. Seigo's avatar
Aaron J. Seigo committed
88 89 90
  kaccelgentest
  kactionselectortest
  kanimatedbuttontest
David Faure's avatar
David Faure committed
91
  kcharselecttest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
92 93 94
  kapptest
  kassistantdialogtest
  kbugreporttest
95
  kcategorizedviewtest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
96 97
  kcodecactiontest
  kcolorcollectiontest
David Faure's avatar
David Faure committed
98
  kcolordlgtest
99
  kcolorcombotest
David Faure's avatar
David Faure committed
100 101 102
  kcomboboxtest
  kcompletionuitest
  kdatepicktest
103
  klanguagebuttontest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
104 105
  kdatetabletest
  kdatetimewidgettest
David Faure's avatar
David Faure committed
106
  kdatewidgettest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
107 108 109
  kdebugtest_gui
  kdialogbuttonboxtest
  kdialogtest
David Faure's avatar
David Faure committed
110
  kfontdialogtest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
111 112 113 114 115 116
  kglobalsettingsclient # helper program for kglobalsettingstest
  khboxtest
  kiconeffecttest
  kiconloadertest
  kinputdialogtest
  kjobtrackerstest
David Faure's avatar
David Faure committed
117 118
  kledtest
  klineedittest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
119 120
  kmainwindowtest
  kmainwindowrestoretest
David Faure's avatar
David Faure committed
121
  kmessageboxtest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
122
  kmessagetest
123
  kmessagewidgettest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
124 125
  kmodifierkeyinfotest
  knewpassworddialogtest
126
  kstatusnotifieritemtest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
127
  knotificationrestrictionstest
David Faure's avatar
David Faure committed
128
  knuminputtest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
129 130 131 132 133
  kpagedialogtest
  kpagewidgettest
  kpassivepopuptest
  kpassworddialogtest
  kpixmapregionselectordialogtest
David Faure's avatar
David Faure committed
134 135 136
  kpopuptest
  kprogressdialogtest
  krulertest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
137
  kselectactiontest
David Faure's avatar
David Faure committed
138 139
  kseparatortest
  kstatusbartest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
140
  ksqueezedtextlabeltest
David Faure's avatar
David Faure committed
141
  ksystemtraytest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
142
  ktabwidgettest
David Faure's avatar
David Faure committed
143
  ktextedittest
David Faure's avatar
David Faure committed
144
  ktextbrowsertest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
145
  ktitlewidgettest
David Faure's avatar
David Faure committed
146 147
  ktoolbartest
  ktoolbarlabelactiontest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
148
  ktreewidgetsearchlinetest
Thomas McGuire's avatar
Thomas McGuire committed
149
  kwallettest
150
  kwidgetitemdelegatetest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
151 152
  kwindowtest
  kxmlguitest
153
  kxmlguiwindowtest
Aaron J. Seigo's avatar
Aaron J. Seigo committed
154
  testqtargs
155
  kpixmapsequenceoverlaypaintertest
156 157
)

158 159 160 161 162
if (Q_WS_MAC AND MAC_USE_OSXKEYCHAIN)
  set_source_files_properties(kwallettest.cpp PROPERTIES 
                               COMPILE_FLAGS -DMAC_USE_OSXKEYCHAIN)
endif(Q_WS_MAC AND MAC_USE_OSXKEYCHAIN)

163 164 165 166 167
if (NOT KDE_NO_DEPRECATED)
KDEUI_EXECUTABLE_TESTS(
  keditlistboxtest
)
endif (NOT KDE_NO_DEPRECATED)
Andreas Hartmetz's avatar
Andreas Hartmetz committed
168

169
if (Q_WS_X11)
Andreas Hartmetz's avatar
Andreas Hartmetz committed
170

171
KDEUI_EXECUTABLE_TESTS(
172 173
 fixx11h_test
 fixx11h_test2
David Faure's avatar
David Faure committed
174
 kxerrorhandlertest
Till Adam's avatar
Till Adam committed
175
 kmanagerselectiontest
176
)
177
target_link_libraries(kmanagerselectiontest ${X11_X11_LIB})
Andreas Hartmetz's avatar
Andreas Hartmetz committed
178
target_link_libraries(kxerrorhandlertest ${X11_X11_LIB})
David Faure's avatar
David Faure committed
179
endif (Q_WS_X11)
180

David Faure's avatar
David Faure committed
181
## kplottest
Pino Toscano's avatar
Pino Toscano committed
182 183

set(kplottest_SRCS testplot_widget.cpp testplot_main.cpp)
184
kde4_add_executable(kplottest TEST ${kplottest_SRCS})
Pino Toscano's avatar
Pino Toscano committed
185
target_link_libraries(kplottest ${KDE4_KDEUI_LIBS})
186

187 188
## kcolorutilsdemo

189
SET(kcolorUtilsDemoSources kcolorutilsdemo.cpp kimageframe.cpp ../colors/kcolorspaces.cpp)
190 191 192 193 194
kde4_add_ui_files(kcolorUtilsDemoSources kcolorutilsdemo.ui)
kde4_add_executable(kcolorutilsdemo ${kcolorUtilsDemoSources})
target_link_libraries(kcolorutilsdemo ${KDE4_KDEUI_LIBS} ${KDEWIN_LIBRARIES})


195
add_subdirectory(proxymodeltestapp)
196