add version follows versioning similar to SDL

odd patch is dev version
This commit is contained in:
Green Sky
2025-04-09 23:18:18 +02:00
parent c1bfed50b6
commit 241c6c2f8e
6 changed files with 24 additions and 5 deletions

8
src/version.hpp.in Normal file
View File

@@ -0,0 +1,8 @@
#pragma once
#define TOMATO_VERSION_MAJOR @tomato_VERSION_MAJOR@
#define TOMATO_VERSION_MINOR @tomato_VERSION_MINOR@
#define TOMATO_VERSION_PATCH @tomato_VERSION_PATCH@
#define TOMATO_VERSION_STR "@tomato_VERSION_MAJOR@.@tomato_VERSION_MINOR@.@tomato_VERSION_PATCH@"