Skip to content

Commit

Permalink
automated version generation
Browse files Browse the repository at this point in the history
  • Loading branch information
svengcz committed Oct 22, 2022
1 parent b05f9d7 commit 125b13a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ IF (MSVC)
ADD_DEFINITIONS(/D_USRDLL)
ENDIF ()

CONFIGURE_FILE(
${CMAKE_SOURCE_DIR}/Version.h.in
${CMAKE_BINARY_DIR}/Version.h
)

# add the binary, include and installation directories to the search paths
INCLUDE_DIRECTORIES(
${CMAKE_BINARY_DIR}
Expand Down
2 changes: 1 addition & 1 deletion Version.h → Version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace {
const char *PLUGIN_NAME{ "vACDM" };
const char *PLUGIN_VERSION{ "0.0.0" };
const char *PLUGIN_VERSION{ "@CMAKE_PROJECT_VERSION@" };
const char *PLUGIN_AUTHOR{ "-" };
const char *PLUGIN_LICENSE{ "-" };
const char* WEBAPI_VERSION{ "10" };
Expand Down

0 comments on commit 125b13a

Please sign in to comment.