2015-12-05 22:48:49 +01:00
|
|
|
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
|
|
|
|
|
2015-12-08 08:34:14 +01:00
|
|
|
# add project files
|
|
|
|
set(HEADER_FILES
|
|
|
|
ffmpeglauncher.h
|
|
|
|
playerwatcher.h
|
|
|
|
)
|
|
|
|
set(SRC_FILES
|
|
|
|
ffmpeglauncher.cpp
|
|
|
|
main.cpp
|
|
|
|
playerwatcher.cpp
|
|
|
|
)
|
2016-04-16 00:57:04 +02:00
|
|
|
|
2015-12-08 08:34:14 +01:00
|
|
|
set(DBUS_FILES
|
|
|
|
org.freedesktop.DBus.Properties.xml
|
|
|
|
org.mpris.MediaPlayer2.xml
|
|
|
|
org.mpris.MediaPlayer2.Player.xml
|
|
|
|
)
|
|
|
|
|
2016-06-14 00:48:19 +02:00
|
|
|
set(DOC_FILES
|
|
|
|
README.md
|
|
|
|
)
|
|
|
|
|
2015-12-05 22:48:49 +01:00
|
|
|
# meta data
|
|
|
|
set(META_PROJECT_NAME dbus-soundrecorder)
|
|
|
|
set(META_APP_NAME "D-Bus Sound Recorder")
|
|
|
|
set(META_APP_AUTHOR "Martchus")
|
|
|
|
set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
|
2015-12-08 08:34:14 +01:00
|
|
|
set(META_APP_DESCRIPTION "Records sound from Pulse Audio with ffmpeg while watching D-Bus to determine tracks and meta information.")
|
2015-12-05 22:48:49 +01:00
|
|
|
set(META_VERSION_MAJOR 1)
|
2015-12-27 22:39:23 +01:00
|
|
|
set(META_VERSION_MINOR 2)
|
2016-06-14 00:48:19 +02:00
|
|
|
set(META_VERSION_PATCH 2)
|
2015-12-05 22:48:49 +01:00
|
|
|
|
2016-04-16 00:57:04 +02:00
|
|
|
# find c++utilities
|
2016-05-26 02:31:18 +02:00
|
|
|
find_package(c++utilities 4.0.0 REQUIRED)
|
2016-04-16 00:57:04 +02:00
|
|
|
use_cpp_utilities()
|
2015-12-05 22:48:49 +01:00
|
|
|
|
2016-04-16 00:57:04 +02:00
|
|
|
# find qtutilities
|
2016-04-25 22:23:02 +02:00
|
|
|
find_package(qtutilities 4.0.0 REQUIRED)
|
2016-04-16 00:57:04 +02:00
|
|
|
list(APPEND CMAKE_MODULE_PATH ${QT_UTILITIES_MODULE_DIRS})
|
2015-12-05 22:48:49 +01:00
|
|
|
|
2016-04-16 00:57:04 +02:00
|
|
|
# include modules to apply configuration
|
|
|
|
include(BasicConfig)
|
|
|
|
include(QtConfig)
|
|
|
|
include(WindowsResources)
|
|
|
|
include(AppTarget)
|