diff options
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_info.cpp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d8aea2..f662234 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -25,6 +25,11 @@ include(CMakePackageConfigHelpers) | |||
25 | include(ECMSetupVersion) | 25 | include(ECMSetupVersion) |
26 | include(KDEInstallDirs) | 26 | include(KDEInstallDirs) |
27 | 27 | ||
28 | ecm_setup_version(PROJECT | ||
29 | SOVERSION sink_VERSION_MAJOR | ||
30 | VERSION_HEADER sink_version.h | ||
31 | ) | ||
32 | |||
28 | find_package(Qt5 COMPONENTS REQUIRED Core Concurrent Network Gui Test) | 33 | find_package(Qt5 COMPONENTS REQUIRED Core Concurrent Network Gui Test) |
29 | find_package(KF5 COMPONENTS REQUIRED Mime Contacts) | 34 | find_package(KF5 COMPONENTS REQUIRED Mime Contacts) |
30 | find_package(FlatBuffers REQUIRED 1.4.0) | 35 | find_package(FlatBuffers REQUIRED 1.4.0) |
diff --git a/sinksh/syntax_modules/sink_info.cpp b/sinksh/syntax_modules/sink_info.cpp index 5f535eb..aa515e6 100644 --- a/sinksh/syntax_modules/sink_info.cpp +++ b/sinksh/syntax_modules/sink_info.cpp | |||
@@ -25,12 +25,14 @@ | |||
25 | #include "sinksh_utils.h" | 25 | #include "sinksh_utils.h" |
26 | #include "state.h" | 26 | #include "state.h" |
27 | #include "syntaxtree.h" | 27 | #include "syntaxtree.h" |
28 | #include "sink_version.h" | ||
28 | 29 | ||
29 | namespace SinkInfo | 30 | namespace SinkInfo |
30 | { | 31 | { |
31 | 32 | ||
32 | bool info(const QStringList &args, State &state) | 33 | bool info(const QStringList &args, State &state) |
33 | { | 34 | { |
35 | state.printLine(QString("Sink version: %1").arg(sink_VERSION_STRING)); | ||
34 | state.printLine(QString("Storage location: %1").arg(Sink::storageLocation())); | 36 | state.printLine(QString("Storage location: %1").arg(Sink::storageLocation())); |
35 | state.printLine(QString("Data location: %1").arg(Sink::dataLocation())); | 37 | state.printLine(QString("Data location: %1").arg(Sink::dataLocation())); |
36 | state.printLine(QString("Config location: %1").arg(Sink::configLocation())); | 38 | state.printLine(QString("Config location: %1").arg(Sink::configLocation())); |