diff --git a/CMakeLists.txt b/CMakeLists.txt index d7263cda..7eb2b75d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,7 @@ set(CLANG_UML_INSTALL_BIN_DIR ${PROJECT_SOURCE_DIR}/bin) set(UML_HEADERS_DIR ${PROJECT_SOURCE_DIR}/src/uml) option(LLVM_CONFIG_PATH "Path to custom llvm-config executable") + option(GIT_VERSION "clang-uml version" "0.1.0") if(LLVM_CONFIG_PATH) diff --git a/README.md b/README.md index 2cc2b802..bc8f7bf2 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Build status](https://github.com/bkryza/clang-uml/actions/workflows/build.yml/badge.svg)](https://github.com/bkryza/clang-uml/actions) [![Coverage](https://codecov.io/gh/bkryza/clang-uml/branch/master/graph/badge.svg)](https://codecov.io/gh/bkryza/clang-uml) +[![Version](https://img.shields.io/badge/version-0.1.0-blue)](https://github.com/bkryza/clang-uml/releases) `clang-uml` is an automatic C++ to [PlantUML](https://plantuml.com) class, sequence and package diagram generator, driven by YAML configuration files. The main idea behind the diff --git a/packaging/debian/rules b/packaging/debian/rules index 17e4f288..99626ef6 100755 --- a/packaging/debian/rules +++ b/packaging/debian/rules @@ -7,7 +7,7 @@ export CLANGUML_GIT_BRANCH={{GIT_BRANCH}} export CLANGUML_GIT_COMMIT={{GIT_COMMIT}} override_dh_auto_configure: - dh_auto_configure --buildsystem=cmake -- -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/usr + dh_auto_configure --buildsystem=cmake -- -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/usr -DGIT_VERSION={{VERSION}} %: