mirror of
https://github.com/obsqrbtz/clrsync.git
synced 2026-04-09 04:29:04 +03:00
chore: set version with CMake
This commit is contained in:
@@ -8,10 +8,10 @@ namespace clrsync::core
|
||||
{
|
||||
|
||||
constexpr uint8_t VERSION_MAJOR = 0;
|
||||
constexpr uint8_t VERSION_MINOR = 0;
|
||||
constexpr uint8_t VERSION_PATCH = 1;
|
||||
constexpr uint8_t VERSION_MINOR = 1;
|
||||
constexpr uint8_t VERSION_PATCH = 0;
|
||||
|
||||
const std::string version_string();
|
||||
} // namespace clrsync::core
|
||||
|
||||
#endif // CLRSYNC_CORE_VERSION_HPP
|
||||
#endif // CLRSYNC_CORE_VERSION_HPP
|
||||
|
||||
17
src/core/version.hpp.in
Normal file
17
src/core/version.hpp.in
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef CLRSYNC_CORE_VERSION_HPP
|
||||
#define CLRSYNC_CORE_VERSION_HPP
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
namespace clrsync::core
|
||||
{
|
||||
|
||||
constexpr uint8_t VERSION_MAJOR = @PROJECT_VERSION_MAJOR@;
|
||||
constexpr uint8_t VERSION_MINOR = @PROJECT_VERSION_MINOR@;
|
||||
constexpr uint8_t VERSION_PATCH = @PROJECT_VERSION_PATCH@;
|
||||
|
||||
const std::string version_string();
|
||||
} // namespace clrsync::core
|
||||
|
||||
#endif // CLRSYNC_CORE_VERSION_HPP
|
||||
Reference in New Issue
Block a user