Skip to content

Commit

Permalink
add generated version_config.h file so version is declared in one place
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-german committed Apr 11, 2024
1 parent a3e7f94 commit bab5012
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/generated/version_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef BLOCKS_VERSION_H
#define BLOCKS_VERSION_H

#define BLOCKS_VERSION "0.1.1"
#define BLOCKS_VERSION_MAJOR 0
#define BLOCKS_VERSION_MINOR 1
#define BLOCKS_VERSION_PATCH 1

#endif // BLOCKS_VERSION_H
9 changes: 9 additions & 0 deletions Source/version_config.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef BLOCKS_VERSION_H
#define BLOCKS_VERSION_H

#define BLOCKS_VERSION "@PROJECT_VERSION@"
#define BLOCKS_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
#define BLOCKS_VERSION_MINOR @PROJECT_VERSION_MINOR@
#define BLOCKS_VERSION_PATCH @PROJECT_VERSION_PATCH@

#endif // BLOCKS_VERSION_H

0 comments on commit bab5012

Please sign in to comment.