Skip to content

Commit b44777a

Browse files
committed
Add version number.
1 parent f437329 commit b44777a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.22)
2-
project(tcli C)
2+
project(tcli VERSION 1.0.0 LANGUAGES C)
33

44
option(TCLI_BUILD_EXAMPLES "Build TinyCLI examples" ${PROJECT_IS_TOP_LEVEL})
55
option(TCLI_BUILD_TESTS "Build TinyCLI unit tests" ${PROJECT_IS_TOP_LEVEL})

include/tcli.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
extern "C" {
1111
#endif
1212

13+
#define TCLI_VERSION_MAJOR 1
14+
#define TCLI_VERSION_MINOR 0
15+
#define TCLI_VERSION_PATCH 0
16+
#define TCLI_VERSION_STR "1.0.0"
17+
1318
#if defined(__GNUC__) || defined(__clang__)
1419
#define TCLI_PRINTF_FORMAT(fmt_idx, args_idx) \
1520
__attribute__((format(printf, fmt_idx, args_idx)))

0 commit comments

Comments
 (0)