-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
522 lines (476 loc) · 16.7 KB
/
Copy pathCMakeLists.txt
File metadata and controls
522 lines (476 loc) · 16.7 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
cmake_minimum_required(VERSION 3.16)
project(OpenMix
VERSION 1.0.7
DESCRIPTION "Stage mixing software for live theatre that lets engineers program, automate, and run cues seamlessly across 30+ digital mixing consoles"
LANGUAGES CXX
)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(GNUInstallDirs)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
if(MSVC)
foreach(config DEBUG RELWITHDEBINFO)
string(REPLACE "/Zi" "/Z7" CMAKE_CXX_FLAGS_${config} "${CMAKE_CXX_FLAGS_${config}}")
string(REPLACE "/Zi" "/Z7" CMAKE_C_FLAGS_${config} "${CMAKE_C_FLAGS_${config}}")
endforeach()
endif()
endif()
# find Qt6
find_package(Qt6 REQUIRED COMPONENTS
Core
Widgets
Network
Svg
Sql
)
# icons
include(FetchContent)
FetchContent_Declare(
qlementine-icons
GIT_REPOSITORY "https://github.com/oclero/qlementine-icons.git"
GIT_TAG "e2ad8c109d245f11b3fcb2c39f8b26aeee87ff50"
)
FetchContent_MakeAvailable(qlementine-icons)
# find liblo for OSC; expose one platform-agnostic target (openmix_liblo) so app
# and tests link the same name on every OS
add_library(openmix_liblo INTERFACE)
if(WIN32)
find_path(LIBLO_INCLUDE_DIRS lo/lo.h REQUIRED)
find_library(LIBLO_LIBRARIES NAMES lo liblo REQUIRED)
target_include_directories(openmix_liblo INTERFACE ${LIBLO_INCLUDE_DIRS})
target_link_libraries(openmix_liblo INTERFACE ${LIBLO_LIBRARIES})
# the deploy script only bundles Qt; ship liblo's runtime DLL ourselves
get_filename_component(_liblo_libdir ${LIBLO_LIBRARIES} DIRECTORY)
find_file(LIBLO_DLL NAMES lo.dll liblo.dll
HINTS ${_liblo_libdir}/../bin ${LIBLO_INCLUDE_DIRS}/../bin)
if(NOT LIBLO_DLL)
message(FATAL_ERROR "liblo runtime DLL not found; the installer would ship without it")
endif()
install(FILES ${LIBLO_DLL} DESTINATION ${CMAKE_INSTALL_BINDIR})
else()
find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBLO REQUIRED IMPORTED_TARGET liblo)
target_link_libraries(openmix_liblo INTERFACE PkgConfig::LIBLO)
endif()
# RtMidi
add_library(RtMidi STATIC libs/RtMidi/RtMidi.cpp libs/RtMidi/RtMidi.h)
target_include_directories(RtMidi PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/libs/RtMidi)
if(WIN32)
target_compile_definitions(RtMidi PUBLIC __WINDOWS_MM__)
target_compile_options(RtMidi PRIVATE /FIwindows.h)
target_link_libraries(RtMidi PUBLIC winmm)
elseif(APPLE)
target_compile_definitions(RtMidi PUBLIC __MACOSX_CORE__)
find_library(COREMIDI_LIBRARY CoreMIDI REQUIRED)
find_library(COREAUDIO_LIBRARY CoreAudio REQUIRED)
find_library(COREFOUNDATION_LIBRARY CoreFoundation REQUIRED)
target_link_libraries(RtMidi PUBLIC
${COREMIDI_LIBRARY}
${COREAUDIO_LIBRARY}
${COREFOUNDATION_LIBRARY}
)
else()
target_compile_definitions(RtMidi PUBLIC __LINUX_ALSA__)
find_package(ALSA REQUIRED)
target_link_libraries(RtMidi PUBLIC ALSA::ALSA)
endif()
# source files
set(SOURCES
src/main.cpp
src/app/Application.cpp
src/app/OscRemoteServer.cpp
src/app/QLabClient.cpp
src/app/ReaperClient.cpp
src/app/CuePlayerClient.cpp
src/app/ScsClient.cpp
src/app/UpdateChecker.cpp
src/app/AutoUpdater.cpp
src/core/Cue.cpp
src/core/CueList.cpp
src/core/Show.cpp
src/core/SpareBackup.cpp
src/core/FxLibrary.cpp
src/core/ConsoleNameCache.cpp
src/core/PlaybackEngine.cpp
src/core/UndoCommands.cpp
src/core/CueValidator.cpp
src/core/PlaybackGuard.cpp
src/core/PlaybackLogger.cpp
src/core/DryRunEngine.cpp
src/core/ShortcutManager.cpp
src/core/DCAMapping.cpp
src/core/ActorProfile.cpp
src/core/Actor.cpp
src/core/ActorProfileLibrary.cpp
src/core/Ensemble.cpp
src/core/FadeEngine.cpp
src/core/Position.cpp
src/core/CueZero.cpp
src/core/ChannelUtilization.cpp
src/core/TimecodeTrigger.cpp
src/core/ChannelMonitor.cpp
src/core/ScribbleController.cpp
src/core/AppLogger.cpp
src/core/ConnectionLogBridge.cpp
src/ui/MainWindow.cpp
src/ui/ChannelStripPanel.cpp
src/ui/CueListView.cpp
src/ui/CueEditor.cpp
src/ui/CollapsibleSection.cpp
src/ui/ConnectionPanel.cpp
src/ui/CueTableModel.cpp
src/ui/CueFilterProxyModel.cpp
src/ui/CueFilterBar.cpp
src/ui/CueItemDelegates.cpp
src/ui/ConnectionStateWidget.cpp
src/ui/MixerFeedbackPanel.cpp
src/ui/DCAWidget.cpp
src/ui/DCAOverrideStrip.cpp
src/ui/CueConfidenceIndicator.cpp
src/ui/MacroPreviewWidget.cpp
src/ui/DCAMappingPanel.cpp
src/ui/ActorSetupPanel.cpp
src/ui/EnsemblePanel.cpp
src/ui/RemoteControlDialog.cpp
src/ui/SettingsDialog.cpp
src/ui/PositionPanel.cpp
src/ui/TimecodePanel.cpp
src/ui/CueZeroDialog.cpp
src/ui/ChannelUtilizationDialog.cpp
src/ui/AllocateSpareDialog.cpp
src/ui/ActiveCueInfoPanel.cpp
src/ui/FxSetupDialog.cpp
src/ui/WelcomeDialog.cpp
src/ui/UpdateDialog.cpp
src/ui/HelpDialog.cpp
src/ui/MarkerNotesDialog.cpp
src/ui/PopOutWindow.cpp
src/ui/WindowSizing.cpp
src/ui/BubbleButton.cpp
src/ui/BubbleBar.cpp
src/ui/theme/Theme.cpp
src/protocol/MixerProtocol.cpp
src/protocol/MixerCapabilities.cpp
src/protocol/ProtocolFactory.cpp
src/protocol/LoopbackProtocol.cpp
src/protocol/transport/OscTransport.cpp
src/protocol/transport/TcpTransport.cpp
src/protocol/behringer/X32Protocol.cpp
src/protocol/behringer/WingProtocol.cpp
src/protocol/allenheath/AllenHeathMidiProtocol.cpp
src/protocol/allenheath/SQProtocol.cpp
src/protocol/allenheath/QuProtocol.cpp
src/protocol/allenheath/GLDProtocol.cpp
src/protocol/allenheath/AllenHeathTcpProtocol.cpp
src/protocol/allenheath/AvantisProtocol.cpp
src/protocol/allenheath/DLiveProtocol.cpp
src/protocol/yamaha/YamahaProtocol.cpp
src/protocol/yamaha/YamahaTFProtocol.cpp
src/protocol/yamaha/YamahaQLProtocol.cpp
src/protocol/yamaha/YamahaCLProtocol.cpp
src/protocol/yamaha/YamahaDM7Protocol.cpp
src/protocol/digico/DiGiCoProtocol.cpp
src/protocol/discovery/DiscoveredConsole.cpp
src/protocol/discovery/ConsoleDiscoveryService.cpp
src/protocol/discovery/probes/BehringerX32ProbeStrategy.cpp
src/protocol/discovery/probes/BehringerWingProbeStrategy.cpp
src/protocol/discovery/probes/YamahaYsdpProbeStrategy.cpp
src/protocol/discovery/probes/AllenHeathProbeStrategy.cpp
src/ui/ConsoleDiscoveryWidget.cpp
src/io/ProjectFile.cpp
src/io/AutosaveManager.cpp
src/io/CrashRecovery.cpp
src/io/TmixImporter.cpp
src/midi/MidiControlMapping.cpp
src/midi/MidiInputManager.cpp
src/ui/MidiConfigDialog.cpp
src/ui/KeyboardShortcutsDialog.cpp
src/ui/LogViewerDialog.cpp
src/ui/LogListModel.cpp
src/ui/LogItemDelegate.cpp
)
# header files
set(HEADERS
src/app/Application.h
src/app/OscRemoteServer.h
src/app/QLabClient.h
src/app/ReaperClient.h
src/app/CuePlayerClient.h
src/app/ScsClient.h
src/app/UpdateChecker.h
src/app/AutoUpdater.h
src/core/Cue.h
src/core/CueList.h
src/core/Show.h
src/core/SpareBackup.h
src/core/FxLibrary.h
src/core/ConsoleNameCache.h
src/core/PlaybackEngine.h
src/core/UndoCommands.h
src/core/CueValidator.h
src/core/PlaybackGuard.h
src/core/PlaybackLogger.h
src/core/DryRunEngine.h
src/core/ShortcutManager.h
src/core/DCAMapping.h
src/core/ActorProfile.h
src/core/Actor.h
src/core/ActorProfileLibrary.h
src/core/Ensemble.h
src/core/FadeCurve.h
src/core/FadeEngine.h
src/core/Position.h
src/core/CueZero.h
src/core/ChannelUtilization.h
src/core/TimecodeTrigger.h
src/core/ChannelMonitor.h
src/core/ScribbleController.h
src/core/AppLogger.h
src/core/ConnectionLogBridge.h
src/ui/MainWindow.h
src/ui/ChannelStripPanel.h
src/ui/CueListView.h
src/ui/CueEditor.h
src/ui/CollapsibleSection.h
src/ui/ConnectionPanel.h
src/ui/CueTableModel.h
src/ui/CueFilterProxyModel.h
src/ui/CueFilterBar.h
src/ui/CueItemDelegates.h
src/ui/ConnectionStateWidget.h
src/ui/MixerFeedbackPanel.h
src/ui/DCAWidget.h
src/ui/CueConfidenceIndicator.h
src/ui/MacroPreviewWidget.h
src/ui/DCAMappingPanel.h
src/ui/ActorSetupPanel.h
src/ui/ActorGroupIo.h
src/ui/EnsemblePanel.h
src/ui/RemoteControlDialog.h
src/ui/SettingsDialog.h
src/ui/PositionPanel.h
src/ui/TimecodePanel.h
src/ui/CueZeroDialog.h
src/ui/ChannelUtilizationDialog.h
src/ui/AllocateSpareDialog.h
src/ui/ActiveCueInfoPanel.h
src/ui/FxSetupDialog.h
src/ui/WelcomeDialog.h
src/ui/HelpDialog.h
src/ui/MarkerNotesDialog.h
src/ui/PopOutWindow.h
src/ui/BubbleButton.h
src/ui/BubbleBar.h
src/ui/theme/Theme.h
src/ui/theme/Icons.h
src/protocol/MixerProtocol.h
src/protocol/MixerCapabilities.h
src/protocol/ProtocolFactory.h
src/protocol/transport/OscTransport.h
src/protocol/transport/TcpTransport.h
src/protocol/behringer/X32Protocol.h
src/protocol/behringer/WingProtocol.h
src/protocol/allenheath/AllenHeathMidiProtocol.h
src/protocol/allenheath/SQProtocol.h
src/protocol/allenheath/QuProtocol.h
src/protocol/allenheath/GLDProtocol.h
src/protocol/allenheath/AllenHeathTcpProtocol.h
src/protocol/allenheath/AvantisProtocol.h
src/protocol/allenheath/DLiveProtocol.h
src/protocol/yamaha/YamahaProtocol.h
src/protocol/yamaha/YamahaTFProtocol.h
src/protocol/yamaha/YamahaQLProtocol.h
src/protocol/yamaha/YamahaCLProtocol.h
src/protocol/yamaha/YamahaDM7Protocol.h
src/protocol/digico/DiGiCoProtocol.h
src/protocol/discovery/DiscoveredConsole.h
src/protocol/discovery/OscProbeStrategy.h
src/protocol/discovery/ConsoleDiscoveryService.h
src/protocol/discovery/probes/BehringerX32ProbeStrategy.h
src/protocol/discovery/probes/BehringerWingProbeStrategy.h
src/protocol/discovery/probes/YamahaYsdpProbeStrategy.h
src/protocol/discovery/probes/AllenHeathProbeStrategy.h
src/ui/ConsoleDiscoveryWidget.h
src/io/ProjectFile.h
src/io/AutosaveManager.h
src/io/CrashRecovery.h
src/io/TmixImporter.h
src/midi/MidiControlMapping.h
src/midi/MidiInputManager.h
src/midi/MscParser.h
src/midi/MtcParser.h
src/ui/MidiConfigDialog.h
src/ui/KeyboardShortcutsDialog.h
src/ui/LogViewerDialog.h
src/ui/LogListModel.h
src/ui/LogItemDelegate.h
)
# Qt resources
set(RESOURCES
resources/resources.qrc
)
# create executable
add_executable(${PROJECT_NAME}
${SOURCES}
${HEADERS}
${RESOURCES}
)
# include directories
target_include_directories(${PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
${CMAKE_CURRENT_SOURCE_DIR}/src/ui
${CMAKE_CURRENT_SOURCE_DIR}/include
)
# link libraries
target_link_libraries(${PROJECT_NAME} PRIVATE
Qt6::Core
Qt6::Widgets
Qt6::Network
Qt6::Svg
Qt6::Sql
qlementine-icons
)
# liblo
target_link_libraries(${PROJECT_NAME} PRIVATE openmix_liblo)
target_link_libraries(${PROJECT_NAME} PRIVATE RtMidi)
# --- auto-update framework (macOS = Sparkle) ---------------------------------
# Windows and Linux use the in-app updater (UpdateChecker + UpdateDialog), so
# nothing extra is linked there.
if(APPLE)
FetchContent_Declare(sparkle
URL https://github.com/sparkle-project/Sparkle/releases/download/2.6.4/Sparkle-2.6.4.tar.xz)
FetchContent_MakeAvailable(sparkle)
target_sources(${PROJECT_NAME} PRIVATE
src/app/AutoUpdaterSparkle.mm
src/app/MoveToApplications.mm)
# the C++ PCH is built with Objective-C disabled; reusing it for these
# Objective-C++ sources fails ("Objective-C was disabled in precompiled
# file ... but is currently enabled"), so skip the PCH for them
set_source_files_properties(src/app/AutoUpdaterSparkle.mm src/app/MoveToApplications.mm
PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
target_compile_options(${PROJECT_NAME} PRIVATE -F${sparkle_SOURCE_DIR})
target_link_libraries(${PROJECT_NAME} PRIVATE "-F${sparkle_SOURCE_DIR}" "-framework Sparkle"
"-framework AppKit")
configure_file(${CMAKE_SOURCE_DIR}/packaging/Info.plist.in
${CMAKE_BINARY_DIR}/Info.plist @ONLY)
set_target_properties(${PROJECT_NAME} PROPERTIES
MACOSX_BUNDLE TRUE
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_BINARY_DIR}/Info.plist
BUILD_RPATH "@executable_path/../Frameworks"
INSTALL_RPATH "@executable_path/../Frameworks")
# USE_SOURCE_PERMISSIONS: without it every file installs as 644 and
# Sparkle's Autoupdate/Updater/XPC helpers lose their execute bits, so
# launchd refuses to run them and every update fails
install(DIRECTORY ${sparkle_SOURCE_DIR}/Sparkle.framework
DESTINATION ${PROJECT_NAME}.app/Contents/Frameworks
USE_SOURCE_PERMISSIONS)
endif()
target_precompile_headers(${PROJECT_NAME} PRIVATE
<QObject>
<QString>
<QStringList>
<QVector>
<QList>
<QMap>
<QHash>
<QSet>
<QTimer>
<QVariant>
<QJsonObject>
<QJsonArray>
<functional>
<optional>
)
# the one version source: project(VERSION) above; the app reads it from here
target_compile_definitions(${PROJECT_NAME} PRIVATE OPENMIX_VERSION="${PROJECT_VERSION}")
# platform-specific settings
if(WIN32)
target_compile_definitions(${PROJECT_NAME} PRIVATE NOMINMAX)
set_target_properties(${PROJECT_NAME} PROPERTIES
WIN32_EXECUTABLE TRUE
)
# embed the app icon into the executable (needs the RC language, which
# project(LANGUAGES CXX) leaves off)
enable_language(RC)
target_sources(${PROJECT_NAME} PRIVATE packaging/openmix.rc)
elseif(APPLE)
set_target_properties(${PROJECT_NAME} PROPERTIES
MACOSX_BUNDLE TRUE
MACOSX_BUNDLE_BUNDLE_NAME "OpenMix"
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION}
)
# bundle icon: ship the icns in Resources (Info.plist.in names it)
target_sources(${PROJECT_NAME} PRIVATE packaging/openmix.icns)
set_source_files_properties(packaging/openmix.icns
PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
endif()
# install rules
install(TARGETS ${PROJECT_NAME}
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
# bundle the Qt runtime into the install tree so the Windows (NSIS) and macOS
# (DragNDrop) installers are self-contained. Linux relies on packaged Qt deps
# (CPACK_DEBIAN_PACKAGE_SHLIBDEPS below).
if(WIN32 OR APPLE)
qt_generate_deploy_app_script(
TARGET ${PROJECT_NAME}
OUTPUT_SCRIPT openmix_deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${openmix_deploy_script})
endif()
# desktop entry + icon (Linux/BSD)
if(UNIX AND NOT APPLE)
install(FILES packaging/openmix.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
install(FILES packaging/openmix.svg
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps)
endif()
# packaging (cpack): deb/rpm/tarball on Linux, NSIS on Windows, drag-drop dmg on macOS
set(CPACK_PACKAGE_NAME "OpenMix")
set(CPACK_PACKAGE_VENDOR "OpenMix")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_DESCRIPTION}")
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "OpenMix")
set(CPACK_PACKAGE_CONTACT "OpenMix")
if(WIN32)
# NSIS installer + portable ZIP (install tree is self-contained: Qt
# runtime, liblo and WinSparkle DLLs are all deployed into it)
set(CPACK_GENERATOR "NSIS;ZIP")
set(CPACK_NSIS_PACKAGE_NAME "OpenMix")
set(CPACK_NSIS_DISPLAY_NAME "OpenMix")
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
set(CPACK_NSIS_MODIFY_PATH OFF)
# installer/uninstaller + Add/Remove Programs icons
set(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/packaging/openmix.ico")
set(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/packaging/openmix.ico")
set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\OpenMix.exe")
# start menu entry + desktop shortcut (removed again on uninstall)
set(CPACK_PACKAGE_EXECUTABLES "OpenMix" "OpenMix")
set(CPACK_NSIS_CREATE_ICONS_EXTRA
"CreateShortCut '$DESKTOP\\\\OpenMix.lnk' '$INSTDIR\\\\bin\\\\OpenMix.exe'")
set(CPACK_NSIS_DELETE_ICONS_EXTRA
"Delete '$DESKTOP\\\\OpenMix.lnk'")
# offer to launch the app from the installer's finish page
set(CPACK_NSIS_MUI_FINISHPAGE_RUN "bin\\\\OpenMix.exe")
elseif(APPLE)
set(CPACK_GENERATOR "DragNDrop")
else()
set(CPACK_GENERATOR "DEB;RPM;TGZ")
set(CPACK_DEBIAN_PACKAGE_SECTION "sound")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_RPM_PACKAGE_LICENSE "GPLv3")
set(CPACK_RPM_PACKAGE_GROUP "Applications/Multimedia")
endif()
include(CPack)
# enable testing
enable_testing()
add_subdirectory(tests)