2 ## This file is part of the PulseView project.
4 ## Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
5 ## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
7 ## This program is free software: you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation, either version 2 of the License, or
10 ## (at your option) any later version.
12 ## This program is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ## GNU General Public License for more details.
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
21 set(pulseview_TEST_SOURCES
22 ${PROJECT_SOURCE_DIR}/pv/devicemanager.cpp
23 ${PROJECT_SOURCE_DIR}/pv/globalsettings.cpp
24 ${PROJECT_SOURCE_DIR}/pv/session.cpp
25 ${PROJECT_SOURCE_DIR}/pv/storesession.cpp
26 ${PROJECT_SOURCE_DIR}/pv/util.cpp
27 ${PROJECT_SOURCE_DIR}/pv/binding/binding.cpp
28 ${PROJECT_SOURCE_DIR}/pv/binding/device.cpp
29 ${PROJECT_SOURCE_DIR}/pv/binding/inputoutput.cpp
30 ${PROJECT_SOURCE_DIR}/pv/data/analog.cpp
31 ${PROJECT_SOURCE_DIR}/pv/data/analogsegment.cpp
32 ${PROJECT_SOURCE_DIR}/pv/data/logic.cpp
33 ${PROJECT_SOURCE_DIR}/pv/data/logicsegment.cpp
34 ${PROJECT_SOURCE_DIR}/pv/data/segment.cpp
35 ${PROJECT_SOURCE_DIR}/pv/data/signalbase.cpp
36 ${PROJECT_SOURCE_DIR}/pv/data/signaldata.cpp
37 ${PROJECT_SOURCE_DIR}/pv/devices/device.cpp
38 ${PROJECT_SOURCE_DIR}/pv/devices/file.cpp
39 ${PROJECT_SOURCE_DIR}/pv/devices/hardwaredevice.cpp
40 ${PROJECT_SOURCE_DIR}/pv/devices/inputfile.cpp
41 ${PROJECT_SOURCE_DIR}/pv/devices/sessionfile.cpp
42 ${PROJECT_SOURCE_DIR}/pv/dialogs/connect.cpp
43 ${PROJECT_SOURCE_DIR}/pv/dialogs/inputoutputoptions.cpp
44 ${PROJECT_SOURCE_DIR}/pv/dialogs/storeprogress.cpp
45 ${PROJECT_SOURCE_DIR}/pv/prop/bool.cpp
46 ${PROJECT_SOURCE_DIR}/pv/prop/double.cpp
47 ${PROJECT_SOURCE_DIR}/pv/prop/enum.cpp
48 ${PROJECT_SOURCE_DIR}/pv/prop/int.cpp
49 ${PROJECT_SOURCE_DIR}/pv/prop/property.cpp
50 ${PROJECT_SOURCE_DIR}/pv/prop/string.cpp
51 ${PROJECT_SOURCE_DIR}/pv/popups/channels.cpp
52 ${PROJECT_SOURCE_DIR}/pv/popups/deviceoptions.cpp
53 ${PROJECT_SOURCE_DIR}/pv/toolbars/mainbar.cpp
54 ${PROJECT_SOURCE_DIR}/pv/view/analogsignal.cpp
55 ${PROJECT_SOURCE_DIR}/pv/view/cursor.cpp
56 ${PROJECT_SOURCE_DIR}/pv/view/cursorpair.cpp
57 ${PROJECT_SOURCE_DIR}/pv/view/flag.cpp
58 ${PROJECT_SOURCE_DIR}/pv/view/header.cpp
59 ${PROJECT_SOURCE_DIR}/pv/view/marginwidget.cpp
60 ${PROJECT_SOURCE_DIR}/pv/view/logicsignal.cpp
61 ${PROJECT_SOURCE_DIR}/pv/view/rowitem.cpp
62 ${PROJECT_SOURCE_DIR}/pv/view/ruler.cpp
63 ${PROJECT_SOURCE_DIR}/pv/view/signal.cpp
64 ${PROJECT_SOURCE_DIR}/pv/view/signalscalehandle.cpp
65 ${PROJECT_SOURCE_DIR}/pv/view/timeitem.cpp
66 ${PROJECT_SOURCE_DIR}/pv/view/timemarker.cpp
67 ${PROJECT_SOURCE_DIR}/pv/view/trace.cpp
68 ${PROJECT_SOURCE_DIR}/pv/view/tracegroup.cpp
69 ${PROJECT_SOURCE_DIR}/pv/view/tracepalette.cpp
70 ${PROJECT_SOURCE_DIR}/pv/view/tracetreeitem.cpp
71 ${PROJECT_SOURCE_DIR}/pv/view/tracetreeitemowner.cpp
72 ${PROJECT_SOURCE_DIR}/pv/view/triggermarker.cpp
73 ${PROJECT_SOURCE_DIR}/pv/view/view.cpp
74 ${PROJECT_SOURCE_DIR}/pv/view/viewitem.cpp
75 ${PROJECT_SOURCE_DIR}/pv/view/viewitemowner.cpp
76 ${PROJECT_SOURCE_DIR}/pv/view/viewitempaintparams.cpp
77 ${PROJECT_SOURCE_DIR}/pv/view/viewport.cpp
78 ${PROJECT_SOURCE_DIR}/pv/view/viewwidget.cpp
79 ${PROJECT_SOURCE_DIR}/pv/views/viewbase.cpp
80 ${PROJECT_SOURCE_DIR}/pv/views/trace/standardbar.cpp
81 ${PROJECT_SOURCE_DIR}/pv/widgets/colourbutton.cpp
82 ${PROJECT_SOURCE_DIR}/pv/widgets/colourpopup.cpp
83 ${PROJECT_SOURCE_DIR}/pv/widgets/devicetoolbutton.cpp
84 ${PROJECT_SOURCE_DIR}/pv/widgets/exportmenu.cpp
85 ${PROJECT_SOURCE_DIR}/pv/widgets/importmenu.cpp
86 ${PROJECT_SOURCE_DIR}/pv/widgets/popup.cpp
87 ${PROJECT_SOURCE_DIR}/pv/widgets/popuptoolbutton.cpp
88 ${PROJECT_SOURCE_DIR}/pv/widgets/sweeptimingwidget.cpp
89 ${PROJECT_SOURCE_DIR}/pv/widgets/timestampspinbox.cpp
90 ${PROJECT_SOURCE_DIR}/pv/widgets/wellarray.cpp
91 data/analogsegment.cpp
99 # This list includes only QObject derived class headers.
100 set(pulseview_TEST_HEADERS
101 ${PROJECT_SOURCE_DIR}/pv/globalsettings.hpp
102 ${PROJECT_SOURCE_DIR}/pv/session.hpp
103 ${PROJECT_SOURCE_DIR}/pv/storesession.hpp
104 ${PROJECT_SOURCE_DIR}/pv/binding/device.hpp
105 ${PROJECT_SOURCE_DIR}/pv/data/analog.hpp
106 ${PROJECT_SOURCE_DIR}/pv/data/analogsegment.hpp
107 ${PROJECT_SOURCE_DIR}/pv/data/logic.hpp
108 ${PROJECT_SOURCE_DIR}/pv/data/logicsegment.hpp
109 ${PROJECT_SOURCE_DIR}/pv/data/signalbase.hpp
110 ${PROJECT_SOURCE_DIR}/pv/devices/device.hpp
111 ${PROJECT_SOURCE_DIR}/pv/dialogs/connect.hpp
112 ${PROJECT_SOURCE_DIR}/pv/dialogs/inputoutputoptions.hpp
113 ${PROJECT_SOURCE_DIR}/pv/dialogs/storeprogress.hpp
114 ${PROJECT_SOURCE_DIR}/pv/popups/channels.hpp
115 ${PROJECT_SOURCE_DIR}/pv/popups/deviceoptions.hpp
116 ${PROJECT_SOURCE_DIR}/pv/prop/bool.hpp
117 ${PROJECT_SOURCE_DIR}/pv/prop/double.hpp
118 ${PROJECT_SOURCE_DIR}/pv/prop/enum.hpp
119 ${PROJECT_SOURCE_DIR}/pv/prop/int.hpp
120 ${PROJECT_SOURCE_DIR}/pv/prop/property.hpp
121 ${PROJECT_SOURCE_DIR}/pv/prop/string.hpp
122 ${PROJECT_SOURCE_DIR}/pv/toolbars/mainbar.hpp
123 ${PROJECT_SOURCE_DIR}/pv/view/analogsignal.hpp
124 ${PROJECT_SOURCE_DIR}/pv/view/cursor.hpp
125 ${PROJECT_SOURCE_DIR}/pv/view/flag.hpp
126 ${PROJECT_SOURCE_DIR}/pv/view/header.hpp
127 ${PROJECT_SOURCE_DIR}/pv/view/logicsignal.hpp
128 ${PROJECT_SOURCE_DIR}/pv/view/marginwidget.hpp
129 ${PROJECT_SOURCE_DIR}/pv/view/rowitem.hpp
130 ${PROJECT_SOURCE_DIR}/pv/view/ruler.hpp
131 ${PROJECT_SOURCE_DIR}/pv/view/signal.hpp
132 ${PROJECT_SOURCE_DIR}/pv/view/signalscalehandle.hpp
133 ${PROJECT_SOURCE_DIR}/pv/view/timeitem.hpp
134 ${PROJECT_SOURCE_DIR}/pv/view/timemarker.hpp
135 ${PROJECT_SOURCE_DIR}/pv/view/trace.hpp
136 ${PROJECT_SOURCE_DIR}/pv/view/tracegroup.hpp
137 ${PROJECT_SOURCE_DIR}/pv/view/tracetreeitem.hpp
138 ${PROJECT_SOURCE_DIR}/pv/view/triggermarker.hpp
139 ${PROJECT_SOURCE_DIR}/pv/view/view.hpp
140 ${PROJECT_SOURCE_DIR}/pv/view/viewitem.hpp
141 ${PROJECT_SOURCE_DIR}/pv/view/viewport.hpp
142 ${PROJECT_SOURCE_DIR}/pv/view/viewwidget.hpp
143 ${PROJECT_SOURCE_DIR}/pv/views/viewbase.hpp
144 ${PROJECT_SOURCE_DIR}/pv/views/trace/standardbar.hpp
145 ${PROJECT_SOURCE_DIR}/pv/widgets/colourbutton.hpp
146 ${PROJECT_SOURCE_DIR}/pv/widgets/colourpopup.hpp
147 ${PROJECT_SOURCE_DIR}/pv/widgets/devicetoolbutton.hpp
148 ${PROJECT_SOURCE_DIR}/pv/widgets/exportmenu.hpp
149 ${PROJECT_SOURCE_DIR}/pv/widgets/importmenu.hpp
150 ${PROJECT_SOURCE_DIR}/pv/widgets/popup.hpp
151 ${PROJECT_SOURCE_DIR}/pv/widgets/popuptoolbutton.hpp
152 ${PROJECT_SOURCE_DIR}/pv/widgets/sweeptimingwidget.hpp
153 ${PROJECT_SOURCE_DIR}/pv/widgets/timestampspinbox.hpp
154 ${PROJECT_SOURCE_DIR}/pv/widgets/wellarray.hpp
158 list(APPEND pulseview_TEST_SOURCES
159 ${PROJECT_SOURCE_DIR}/pv/binding/decoder.cpp
160 ${PROJECT_SOURCE_DIR}/pv/data/decoderstack.cpp
161 ${PROJECT_SOURCE_DIR}/pv/data/decode/annotation.cpp
162 ${PROJECT_SOURCE_DIR}/pv/data/decode/decoder.cpp
163 ${PROJECT_SOURCE_DIR}/pv/data/decode/row.cpp
164 ${PROJECT_SOURCE_DIR}/pv/data/decode/rowdata.cpp
165 ${PROJECT_SOURCE_DIR}/pv/view/decodetrace.cpp
166 ${PROJECT_SOURCE_DIR}/pv/widgets/decodergroupbox.cpp
167 ${PROJECT_SOURCE_DIR}/pv/widgets/decodermenu.cpp
168 data/decoderstack.cpp
171 list(APPEND pulseview_TEST_HEADERS
172 ${PROJECT_SOURCE_DIR}/pv/data/decoderstack.hpp
173 ${PROJECT_SOURCE_DIR}/pv/view/decodetrace.hpp
174 ${PROJECT_SOURCE_DIR}/pv/widgets/decodergroupbox.hpp
175 ${PROJECT_SOURCE_DIR}/pv/widgets/decodermenu.hpp
179 # On MinGW we need to use static linking.
181 add_definitions(-DBOOST_TEST_DYN_LINK)
184 add_executable(pulseview-test
185 ${pulseview_TEST_SOURCES}
186 ${pulseview_TEST_HEADERS_MOC}
189 target_link_libraries(pulseview-test ${PULSEVIEW_LINK_LIBS})