Commit 993549a8 authored by Bhushan Shah's avatar Bhushan Shah 📱
Browse files

Adapt version to PlaMo Gear 21.05

parent 3a86adcf
......@@ -5,6 +5,7 @@
#
project(krecorder)
set(PROJECT_VERSION "21.05")
cmake_minimum_required(VERSION 3.0)
......@@ -23,6 +24,11 @@ include(ECMSetupVersion)
include(ECMGenerateHeaders)
include(ECMPoQmTools)
# setup version
ecm_setup_version(${PROJECT_VERSION}
VARIABLE_PREFIX KRECORDER
VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/version.h
)
################# Find dependencies #################
find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets Qml QuickControls2 Multimedia)
find_package(KF5Kirigami2)
......
......@@ -28,6 +28,8 @@ target_link_libraries(krecorder
KF5::ConfigGui
)
target_include_directories(krecorder PRIVATE ${CMAKE_BINARY_DIR})
install(TARGETS krecorder ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
......
......@@ -11,6 +11,7 @@
#include <QUrl>
#include <KLocalizedContext>
#include <QAudioRecorder>
#include <QCommandLineParser>
#include "recordingmodel.h"
#include "utils.h"
......@@ -18,14 +19,19 @@
#include "audiorecorder.h"
#include "audioprober.h"
#include "settingsmodel.h"
#include "version.h"
Q_DECL_EXPORT int main(int argc, char *argv[])
{
QCommandLineParser parser;
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
parser.addVersionOption();
QApplication app(argc, argv);
QCoreApplication::setOrganizationName("KDE");
QCoreApplication::setOrganizationDomain("kde.org");
QCoreApplication::setApplicationName("KRecorder");
QCoreApplication::setApplicationVersion(QStringLiteral(KRECORDER_VERSION_STRING));
parser.process(app);
qmlRegisterType<Recording>("KRecorder", 1, 0, "Recording");
qmlRegisterType<AudioProber>("KRecorder", 1, 0, "AudioProber");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment