]>
Commit | Line | Data |
---|---|---|
0aad432c | 1 | ## |
190fc91a | 2 | ## This file is part of the PulseView project. |
68c4a3b3 JH |
3 | ## |
4 | ## Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk> | |
3933e8a9 | 5 | ## Copyright (C) 2012-2013 Alexandru Gagniuc <mr.nuke.me@gmail.com> |
68c4a3b3 JH |
6 | ## |
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. | |
11 | ## | |
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. | |
16 | ## | |
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/>. | |
19 | ## | |
20 | ||
7ba41e7e | 21 | cmake_minimum_required(VERSION 2.8.6) |
0cf9fb24 | 22 | |
df944399 | 23 | include(FindPkgConfig) |
52bbe600 | 24 | include(GNUInstallDirs) |
df944399 | 25 | |
a8d3fb2d | 26 | project(pulseview) |
df944399 | 27 | |
cf2b5b64 UH |
28 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake") |
29 | ||
30588653 | 30 | #=============================================================================== |
506523c1 JH |
31 | #= User Options |
32 | #------------------------------------------------------------------------------- | |
33 | ||
5f606159 | 34 | option(DISABLE_WERROR "Build without -Werror" FALSE) |
140181a4 | 35 | option(ENABLE_SIGNALS "Build with UNIX signals" TRUE) |
19f511a4 | 36 | option(ENABLE_DECODE "Build with libsigrokdecode" TRUE) |
506523c1 | 37 | option(ENABLE_TESTS "Enable unit tests" FALSE) |
61e1e13e | 38 | option(STATIC_PKGDEPS_LIBS "Statically link to (pkg-config) libraries" FALSE) |
9e8e84fc | 39 | option(FORCE_QT4 "Force use of Qt4 even if Qt5 is available" FALSE) |
b04e278d AG |
40 | |
41 | if(WIN32) | |
7d297a01 UH |
42 | # On Windows/MinGW we need to statically link to libraries. |
43 | # This option is user configurable, but enable it by default on win32. | |
b04e278d | 44 | set(STATIC_PKGDEPS_LIBS TRUE) |
6987ceeb | 45 | |
2a21747e UH |
46 | # For boost-thread we need two additional settings on win32: |
47 | set(Boost_USE_STATIC_LIBS ON) | |
48 | add_definitions(-DBOOST_THREAD_USE_LIB) | |
49 | ||
e6fd809f UH |
50 | # On Windows/MinGW we need to use 'thread_win32' instead of 'thread'. |
51 | # The library is named libboost_thread_win32* (not libboost_thread*). | |
52 | set(Boost_THREADAPI win32) | |
53 | ||
0aad432c | 54 | # Windows does not support UNIX signals. |
140181a4 | 55 | set(ENABLE_SIGNALS FALSE) |
b04e278d | 56 | endif() |
506523c1 | 57 | |
552f686e | 58 | if(NOT CMAKE_BUILD_TYPE) |
7591fe23 UH |
59 | set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING |
60 | "Choose the type of build (None, Debug, Release, RelWithDebInfo, MinSizeRel)." | |
61 | FORCE) | |
552f686e JH |
62 | endif() |
63 | ||
506523c1 | 64 | #=============================================================================== |
30588653 AG |
65 | #= Dependencies |
66 | #------------------------------------------------------------------------------- | |
67 | ||
fe3a1c21 | 68 | list(APPEND PKGDEPS libsigrokcxx>=0.3.0) |
df944399 | 69 | |
269528f5 | 70 | if(ENABLE_DECODE) |
ab186d22 | 71 | list(APPEND PKGDEPS libsigrokdecode>=0.3.0) |
269528f5 JH |
72 | endif() |
73 | ||
aff51746 MC |
74 | if(ANDROID) |
75 | list(APPEND PKGDEPS libsigrokandroidutils>=0.1.0) | |
76 | endif() | |
77 | ||
d52d8455 JH |
78 | find_package(PkgConfig) |
79 | pkg_check_modules(PKGDEPS REQUIRED ${PKGDEPS}) | |
80 | ||
9e8e84fc MC |
81 | if(FORCE_QT4) |
82 | set(Qt5Core_FOUND FALSE) | |
83 | else() | |
84 | find_package(Qt5Core QUIET) | |
85 | endif() | |
86 | ||
87 | if(Qt5Core_FOUND) | |
88 | message("-- Using Qt5") | |
89 | find_package(Qt5Widgets REQUIRED) | |
90 | find_package(Qt5Gui REQUIRED) | |
726ea667 | 91 | find_package(Qt5Svg REQUIRED) |
1cd4be22 | 92 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") |
ea370bc6 | 93 | set(QT_INCLUDE_DIRS ${Qt5Gui_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS}) |
726ea667 | 94 | set(QT_LIBRARIES Qt5::Gui Qt5::Widgets Qt5::Svg) |
9e8e84fc MC |
95 | add_definitions(${Qt5Gui_DEFINITIONS} ${Qt5Widgets_DEFINITIONS}) |
96 | else() | |
97 | find_program(QT_QMAKE_EXECUTABLE NAMES qmake4 qmake-qt4 qmake-mac) | |
52f38de6 | 98 | find_package(Qt4 REQUIRED QtCore QtGui QtSvg) |
9e8e84fc | 99 | endif() |
2e2946fe | 100 | |
226a1527 UH |
101 | if(ENABLE_TESTS) |
102 | find_package(Boost 1.42 COMPONENTS filesystem system thread unit_test_framework REQUIRED) | |
2a21747e UH |
103 | else() |
104 | find_package(Boost 1.42 COMPONENTS filesystem system thread REQUIRED) | |
105 | endif() | |
df944399 | 106 | |
858ae630 UH |
107 | # Find the platform's thread library (needed for C++11 threads). |
108 | # This will set ${CMAKE_THREAD_LIBS_INIT} to the correct, OS-specific value. | |
2b76309a AJ |
109 | find_package(Threads REQUIRED) |
110 | ||
9df8453f MC |
111 | #=============================================================================== |
112 | #= System Introspection | |
113 | #------------------------------------------------------------------------------- | |
114 | ||
115 | include(memaccess) | |
116 | memaccess_check_unaligned_le(HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS) | |
117 | ||
075fb499 AG |
118 | #=============================================================================== |
119 | #= Config Header | |
120 | #------------------------------------------------------------------------------- | |
121 | ||
f7951df4 | 122 | set(PV_TITLE PulseView) |
d4384c6d | 123 | set(PV_DESCRIPTION "A GUI for sigrok") |
f7951df4 | 124 | |
075fb499 | 125 | set(PV_VERSION_MAJOR 0) |
744905d4 | 126 | set(PV_VERSION_MINOR 2) |
075fb499 AG |
127 | set(PV_VERSION_MICRO 0) |
128 | set(PV_VERSION_STRING | |
129 | ${PV_VERSION_MAJOR}.${PV_VERSION_MINOR}.${PV_VERSION_MICRO} | |
130 | ) | |
131 | ||
132 | configure_file ( | |
133 | ${PROJECT_SOURCE_DIR}/config.h.in | |
134 | ${PROJECT_BINARY_DIR}/config.h | |
135 | ) | |
df944399 | 136 | |
30588653 AG |
137 | #=============================================================================== |
138 | #= Sources | |
139 | #------------------------------------------------------------------------------- | |
140 | ||
a8d3fb2d | 141 | set(pulseview_SOURCES |
df944399 | 142 | main.cpp |
dac1bb97 | 143 | pv/application.cpp |
107ca6d3 | 144 | pv/devicemanager.cpp |
51e77110 | 145 | pv/mainwindow.cpp |
f65cd27b | 146 | pv/session.cpp |
0fbda3c2 | 147 | pv/storesession.cpp |
f0c9f81c | 148 | pv/util.cpp |
61703a01 | 149 | pv/binding/binding.cpp |
0c913637 | 150 | pv/binding/inputoutput.cpp |
3cc9ad7b | 151 | pv/binding/device.cpp |
1b1ec774 | 152 | pv/data/analog.cpp |
f3d66e52 | 153 | pv/data/analogsegment.cpp |
1b1ec774 | 154 | pv/data/logic.cpp |
f3d66e52 | 155 | pv/data/logicsegment.cpp |
1b1ec774 | 156 | pv/data/signaldata.cpp |
f3d66e52 | 157 | pv/data/segment.cpp |
acda14b8 | 158 | pv/dialogs/about.cpp |
9663c82b | 159 | pv/dialogs/connect.cpp |
e93f5538 | 160 | pv/dialogs/inputoutputoptions.cpp |
0fbda3c2 | 161 | pv/dialogs/storeprogress.cpp |
51d4a9ab | 162 | pv/popups/deviceoptions.cpp |
6ac6242b | 163 | pv/popups/channels.cpp |
de1d99bb | 164 | pv/prop/bool.cpp |
b912c99c | 165 | pv/prop/double.cpp |
820c3dea | 166 | pv/prop/enum.cpp |
a2b92157 | 167 | pv/prop/int.cpp |
c8df6005 | 168 | pv/prop/property.cpp |
7112a458 | 169 | pv/prop/string.cpp |
7c657094 | 170 | pv/toolbars/mainbar.cpp |
aba1dd16 | 171 | pv/view/analogsignal.cpp |
cabce982 | 172 | pv/view/cursor.cpp |
b42d25c4 | 173 | pv/view/cursorpair.cpp |
8914fe79 | 174 | pv/view/flag.cpp |
1d8dca91 | 175 | pv/view/header.cpp |
c23b29d6 | 176 | pv/view/marginwidget.cpp |
8d634081 | 177 | pv/view/logicsignal.cpp |
23935421 | 178 | pv/view/rowitem.cpp |
18f7104f | 179 | pv/view/rowitemowner.cpp |
ccdd3ef5 | 180 | pv/view/ruler.cpp |
8d634081 | 181 | pv/view/signal.cpp |
ad341c3a | 182 | pv/view/timeitem.cpp |
cd6c8ee2 | 183 | pv/view/timemarker.cpp |
931f20b0 | 184 | pv/view/trace.cpp |
722930c1 | 185 | pv/view/tracegroup.cpp |
91e8bf08 | 186 | pv/view/tracepalette.cpp |
cdf7bea7 | 187 | pv/view/view.cpp |
26e3af6b | 188 | pv/view/viewitem.cpp |
5b5fa4da | 189 | pv/view/viewitempaintparams.cpp |
cdf7bea7 | 190 | pv/view/viewport.cpp |
40aca27e | 191 | pv/view/viewwidget.cpp |
91e8bf08 JH |
192 | pv/widgets/colourbutton.cpp |
193 | pv/widgets/colourpopup.cpp | |
079d39ea | 194 | pv/widgets/devicetoolbutton.cpp |
ce6001b8 | 195 | pv/widgets/exportmenu.cpp |
1c4c23b8 | 196 | pv/widgets/hidingmenubar.cpp |
6e3f046e | 197 | pv/widgets/popup.cpp |
6a91973f | 198 | pv/widgets/popuptoolbutton.cpp |
1198b887 | 199 | pv/widgets/sweeptimingwidget.cpp |
0c0e1888 | 200 | pv/widgets/wellarray.cpp |
df944399 JH |
201 | ) |
202 | ||
0aad432c | 203 | # This list includes only QObject derived class headers. |
a8d3fb2d | 204 | set(pulseview_HEADERS |
2acdb232 | 205 | pv/mainwindow.hpp |
f65cd27b | 206 | pv/session.hpp |
2acdb232 | 207 | pv/storesession.hpp |
3cc9ad7b | 208 | pv/binding/device.hpp |
2acdb232 JH |
209 | pv/dialogs/about.hpp |
210 | pv/dialogs/connect.hpp | |
e93f5538 | 211 | pv/dialogs/inputoutputoptions.hpp |
2acdb232 JH |
212 | pv/dialogs/storeprogress.hpp |
213 | pv/popups/channels.hpp | |
214 | pv/popups/deviceoptions.hpp | |
215 | pv/prop/bool.hpp | |
216 | pv/prop/double.hpp | |
217 | pv/prop/enum.hpp | |
218 | pv/prop/int.hpp | |
219 | pv/prop/property.hpp | |
220 | pv/prop/string.hpp | |
7c657094 | 221 | pv/toolbars/mainbar.hpp |
2acdb232 | 222 | pv/view/cursor.hpp |
8914fe79 | 223 | pv/view/flag.hpp |
2acdb232 JH |
224 | pv/view/header.hpp |
225 | pv/view/logicsignal.hpp | |
226 | pv/view/marginwidget.hpp | |
227 | pv/view/rowitem.hpp | |
228 | pv/view/ruler.hpp | |
2acdb232 | 229 | pv/view/signal.hpp |
ad341c3a | 230 | pv/view/timeitem.hpp |
2acdb232 JH |
231 | pv/view/timemarker.hpp |
232 | pv/view/trace.hpp | |
233 | pv/view/tracegroup.hpp | |
234 | pv/view/view.hpp | |
26e3af6b | 235 | pv/view/viewitem.hpp |
2acdb232 | 236 | pv/view/viewport.hpp |
40aca27e | 237 | pv/view/viewwidget.hpp |
2acdb232 JH |
238 | pv/widgets/colourbutton.hpp |
239 | pv/widgets/colourpopup.hpp | |
079d39ea | 240 | pv/widgets/devicetoolbutton.hpp |
ce6001b8 | 241 | pv/widgets/exportmenu.hpp |
1c4c23b8 | 242 | pv/widgets/hidingmenubar.hpp |
2acdb232 JH |
243 | pv/widgets/popup.hpp |
244 | pv/widgets/popuptoolbutton.hpp | |
245 | pv/widgets/sweeptimingwidget.hpp | |
246 | pv/widgets/wellarray.hpp | |
df944399 JH |
247 | ) |
248 | ||
a8d3fb2d | 249 | set(pulseview_FORMS |
acda14b8 | 250 | pv/dialogs/about.ui |
df944399 JH |
251 | ) |
252 | ||
a8d3fb2d JH |
253 | set(pulseview_RESOURCES |
254 | pulseview.qrc | |
df944399 JH |
255 | ) |
256 | ||
140181a4 JH |
257 | if(ENABLE_SIGNALS) |
258 | list(APPEND pulseview_SOURCES signalhandler.cpp) | |
2acdb232 | 259 | list(APPEND pulseview_HEADERS signalhandler.hpp) |
140181a4 JH |
260 | endif() |
261 | ||
269528f5 JH |
262 | if(ENABLE_DECODE) |
263 | list(APPEND pulseview_SOURCES | |
3cc9ad7b | 264 | pv/binding/decoder.cpp |
269528f5 JH |
265 | pv/data/decoderstack.cpp |
266 | pv/data/decode/annotation.cpp | |
267 | pv/data/decode/decoder.cpp | |
f9101a91 JH |
268 | pv/data/decode/row.cpp |
269 | pv/data/decode/rowdata.cpp | |
269528f5 JH |
270 | pv/view/decodetrace.cpp |
271 | pv/widgets/decodergroupbox.cpp | |
272 | pv/widgets/decodermenu.cpp | |
269528f5 JH |
273 | ) |
274 | ||
275 | list(APPEND pulseview_HEADERS | |
2acdb232 JH |
276 | pv/data/decoderstack.hpp |
277 | pv/view/decodetrace.hpp | |
278 | pv/widgets/decodergroupbox.hpp | |
279 | pv/widgets/decodermenu.hpp | |
269528f5 JH |
280 | ) |
281 | endif() | |
282 | ||
fe15e0bc UH |
283 | if(WIN32) |
284 | # Use the sigrok icon for the pulseview.exe executable. | |
285 | set(CMAKE_RC_COMPILE_OBJECT "${CMAKE_RC_COMPILER} -O coff -I${CMAKE_CURRENT_SOURCE_DIR} <SOURCE> <OBJECT>") | |
286 | enable_language(RC) | |
61e1e13e | 287 | list(APPEND pulseview_SOURCES pulseviewico.rc) |
fe15e0bc UH |
288 | endif() |
289 | ||
9137928c MC |
290 | if(ANDROID) |
291 | list(APPEND pulseview_SOURCES android/loghandler.cpp) | |
292 | endif() | |
293 | ||
9e8e84fc MC |
294 | if(Qt5Core_FOUND) |
295 | qt5_wrap_cpp(pulseview_HEADERS_MOC ${pulseview_HEADERS}) | |
296 | qt5_wrap_ui(pulseview_FORMS_HEADERS ${pulseview_FORMS}) | |
297 | qt5_add_resources(pulseview_RESOURCES_RCC ${pulseview_RESOURCES}) | |
298 | else() | |
299 | qt4_wrap_cpp(pulseview_HEADERS_MOC ${pulseview_HEADERS}) | |
300 | qt4_wrap_ui(pulseview_FORMS_HEADERS ${pulseview_FORMS}) | |
301 | qt4_add_resources(pulseview_RESOURCES_RCC ${pulseview_RESOURCES}) | |
302 | include(${QT_USE_FILE}) | |
303 | endif() | |
df944399 | 304 | |
30588653 AG |
305 | #=============================================================================== |
306 | #= Global Definitions | |
307 | #------------------------------------------------------------------------------- | |
308 | ||
e9213170 | 309 | add_definitions(${QT_DEFINITIONS} -DQT_NO_KEYWORDS) |
ac223c1e | 310 | add_definitions(-D__STDC_LIMIT_MACROS) |
a9974171 | 311 | add_definitions(-Wall -Wextra) |
95d43108 | 312 | add_definitions(-std=c++11) |
5f606159 | 313 | |
269528f5 JH |
314 | if(ENABLE_DECODE) |
315 | add_definitions(-DENABLE_DECODE) | |
316 | endif() | |
317 | ||
5f606159 JH |
318 | if(NOT DISABLE_WERROR) |
319 | add_definitions(-Werror) | |
320 | endif() | |
df944399 | 321 | |
9632990d UH |
322 | if(ENABLE_SIGNALS) |
323 | add_definitions(-DENABLE_SIGNALS) | |
324 | endif() | |
325 | ||
30588653 AG |
326 | #=============================================================================== |
327 | #= Global Include Directories | |
328 | #------------------------------------------------------------------------------- | |
329 | ||
b04e278d AG |
330 | include_directories( |
331 | ${CMAKE_CURRENT_BINARY_DIR} | |
cef18fc6 | 332 | ${CMAKE_CURRENT_SOURCE_DIR} |
b04e278d | 333 | ${Boost_INCLUDE_DIRS} |
9e8e84fc | 334 | ${QT_INCLUDE_DIRS} |
b04e278d AG |
335 | ) |
336 | ||
337 | if(STATIC_PKGDEPS_LIBS) | |
338 | include_directories(${PKGDEPS_STATIC_INCLUDE_DIRS}) | |
339 | else() | |
340 | include_directories(${PKGDEPS_INCLUDE_DIRS}) | |
341 | endif() | |
df944399 | 342 | |
30588653 AG |
343 | #=============================================================================== |
344 | #= Linker Configuration | |
345 | #------------------------------------------------------------------------------- | |
346 | ||
b04e278d AG |
347 | link_directories(${Boost_LIBRARY_DIRS}) |
348 | ||
349 | set(PULSEVIEW_LINK_LIBS | |
350 | ${Boost_LIBRARIES} | |
351 | ${QT_LIBRARIES} | |
2b76309a | 352 | ${CMAKE_THREAD_LIBS_INIT} |
b04e278d AG |
353 | ) |
354 | ||
355 | if(STATIC_PKGDEPS_LIBS) | |
356 | link_directories(${PKGDEPS_STATIC_LIBRARY_DIRS}) | |
357 | list(APPEND PULSEVIEW_LINK_LIBS ${PKGDEPS_STATIC_LIBRARIES}) | |
7cfb538d UH |
358 | if(WIN32) |
359 | # Workaround for a MinGW linking issue. | |
360 | list(APPEND PULSEVIEW_LINK_LIBS "-llzma -llcms2") | |
361 | endif() | |
b04e278d AG |
362 | else() |
363 | link_directories(${PKGDEPS_LIBRARY_DIRS}) | |
364 | list(APPEND PULSEVIEW_LINK_LIBS ${PKGDEPS_LIBRARIES}) | |
365 | endif() | |
df944399 | 366 | |
11a04e2a UH |
367 | if(WIN32) |
368 | # On Windows we need to statically link the libqsvg imageformat | |
369 | # plugin (and the QtSvg component) for SVG graphics/icons to work. | |
370 | add_definitions(-DQT_STATICPLUGIN) | |
371 | link_directories("${QT_PLUGINS_DIR}/imageformats") | |
11a04e2a | 372 | list(APPEND PULSEVIEW_LINK_LIBS "-lqsvg") |
52f38de6 | 373 | list(APPEND PULSEVIEW_LINK_LIBS ${QT_QTSVG_LIBRARY}) |
11a04e2a UH |
374 | endif() |
375 | ||
9137928c MC |
376 | if(ANDROID) |
377 | list(APPEND PULSEVIEW_LINK_LIBS "-llog") | |
378 | endif() | |
379 | ||
26807061 MC |
380 | if(ANDROID) |
381 | add_library(${PROJECT_NAME} SHARED | |
382 | ${pulseview_SOURCES} | |
383 | ${pulseview_HEADERS_MOC} | |
384 | ${pulseview_FORMS_HEADERS} | |
385 | ${pulseview_RESOURCES_RCC} | |
386 | ) | |
387 | else() | |
5a13850b | 388 | add_executable(${PROJECT_NAME} |
a8d3fb2d JH |
389 | ${pulseview_SOURCES} |
390 | ${pulseview_HEADERS_MOC} | |
391 | ${pulseview_FORMS_HEADERS} | |
392 | ${pulseview_RESOURCES_RCC} | |
df944399 | 393 | ) |
26807061 | 394 | endif() |
df944399 | 395 | |
5a13850b | 396 | target_link_libraries(${PROJECT_NAME} ${PULSEVIEW_LINK_LIBS}) |
f0fa92c6 | 397 | |
b0d8c0dc | 398 | if(WIN32) |
61e1e13e UH |
399 | # Pass -mwindows so that no "DOS box" opens when PulseView is started. |
400 | set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-mwindows") | |
b0d8c0dc UH |
401 | endif() |
402 | ||
30588653 AG |
403 | #=============================================================================== |
404 | #= Installation | |
405 | #------------------------------------------------------------------------------- | |
406 | ||
52bbe600 | 407 | # Install the executable. |
cd6606c2 AG |
408 | install(TARGETS ${PROJECT_NAME} DESTINATION bin/) |
409 | ||
52bbe600 UH |
410 | # Install the manpage. |
411 | install(FILES doc/pulseview.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT doc) | |
412 | ||
cd6606c2 AG |
413 | #=============================================================================== |
414 | #= Packaging (handled by CPack) | |
415 | #------------------------------------------------------------------------------- | |
416 | ||
b02a8cbf JH |
417 | set(CPACK_PACKAGE_VERSION_MAJOR ${PV_VERSION_MAJOR}) |
418 | set(CPACK_PACKAGE_VERSION_MINOR ${PV_VERSION_MINOR}) | |
419 | set(CPACK_PACKAGE_VERSION_PATCH ${PV_VERSION_MICRO}) | |
cd6606c2 AG |
420 | set(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/README) |
421 | set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_SOURCE_DIR}/COPYING) | |
422 | set(CPACK_SOURCE_IGNORE_FILES ${CMAKE_CURRENT_BINARY_DIR} ".gitignore" ".git") | |
4b413894 JH |
423 | set(CPACK_SOURCE_PACKAGE_FILE_NAME |
424 | "${CMAKE_PROJECT_NAME}-${PV_VERSION_MAJOR}.${PV_VERSION_MINOR}.${PV_VERSION_MICRO}") | |
1d2fb87d | 425 | set(CPACK_SOURCE_GENERATOR "TGZ") |
cd6606c2 AG |
426 | |
427 | include(CPack) | |
bc1c1462 | 428 | |
30588653 AG |
429 | #=============================================================================== |
430 | #= Tests | |
431 | #------------------------------------------------------------------------------- | |
432 | ||
77e8ac52 | 433 | if(ENABLE_TESTS) |
fb746bcc | 434 | add_subdirectory(test) |
951c583c | 435 | enable_testing() |
fb746bcc | 436 | add_test(test ${CMAKE_CURRENT_BINARY_DIR}/test/pulseview-test) |
0aad432c | 437 | endif() |