add git_tag

This commit is contained in:
2026-02-14 14:32:02 +01:00
parent 9b728b96e1
commit 0da7be73b2
7 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ target_include_directories(client
${PROJECT_BINARY_DIR}/
)
target_link_libraries(client PRIVATE qwt spdlog Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::WebSockets magic_enum::magic_enum nlohmann_json::nlohmann_json)
target_link_libraries(client PRIVATE qwt spdlog Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::WebSockets magic_enum::magic_enum nlohmann_json::nlohmann_json git_tag)
# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
# If you are developing for iOS or macOS you should consider setting an
+2 -1
View File
@@ -6,6 +6,7 @@
#include <QCommandLineOption>
#include <QCommandLineParser>
#include <QProcess>
#include "git_version.h"
#ifdef EMSCRIPTEN
#include <emscripten.h>
@@ -31,7 +32,7 @@ int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QCommandLineParser parser;
parser.setApplicationDescription("unisim_cpp client");
parser.setApplicationDescription("unisim_cpp client - version: " + QString::fromStdString(Git_version::shortSha1) + QString::fromStdString(Git_version::dirty ? "-dirty" : ""));
parser.addHelpOption();
QCommandLineOption host_option(QStringList() << "s"