Commit 97324a28 authored by Fabian Vogt's avatar Fabian Vogt

Merge branch 'version' into 'master'

Bump version to 4.90.0 (beta) and add version display

See merge request kde/kio-fuse!11
parents 1aeefc01 9dea2a39
cmake_minimum_required(VERSION 3.1)
project(kio-fuse VERSION 0.1)
project(kio-fuse VERSION 4.90.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
......@@ -19,6 +19,7 @@ include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include(ECMSetupVersion)
find_package(PkgConfig REQUIRED)
find_package(Qt5 ${Qt5_MIN_VERSION} COMPONENTS Core REQUIRED)
......@@ -40,6 +41,10 @@ set(KIOFUSE_SOURCES
kiofuseservice.h
kiofusenode.h)
ecm_setup_version(PROJECT
VARIABLE_PREFIX KIOFUSE
VERSION_HEADER kiofuseversion.h)
ecm_qt_declare_logging_category(KIOFUSE_SOURCES
HEADER debug.h
IDENTIFIER KIOFUSE_LOG
......
......@@ -23,6 +23,7 @@
#include <QCoreApplication>
#include "kiofuseservice.h"
#include "kiofuseversion.h"
int main(int argc, char *argv[])
{
......@@ -41,6 +42,7 @@ int main(int argc, char *argv[])
}
else if (opts.show_version)
{
printf("KIO FUSE version %s\n", KIOFUSE_VERSION_STRING);
printf("FUSE library version %s\n", fuse_pkgversion());
fuse_lowlevel_version();
return 0;
......
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