-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Version.h.in
26 lines (19 loc) · 1.06 KB
/
Version.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Auto Generated by CMake. DO NOT MAKE MODIFICATIONS */
#pragma once
#include <spdlog/spdlog.h>
// Version
#define PROJECT_NAME "@PROJECT_NAME@"
#define PROJECT_MAJOR_VERSION @PROJECT_VERSION_MAJOR@
#define PROJECT_MINOR_VERSION @PROJECT_VERSION_MINOR@
#define PROJECT_PATCH_VERSION @PROJECT_VERSION_PATCH@
#define PROJECT_VERSION "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@"
#define PROJECT_REVISION_VERSION "@PROJECT_VERSION_TWEAK@"
#define PROJECT_FULL_REVISION "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@-@PROJECT_VERSION_TWEAK@"
#define PROJECT_BUILD_TIME __TIME__
#define PROJECT_BUILD_DATE __DATE__
// System Information
#define COMPILER_NAME "@CMAKE_CXX_COMPILER_ID@"
#define COMPILER_VERSION "@CMAKE_CXX_COMPILER_VERSION@"
#define BUILD_TYPE "@CMAKE_BUILD_TYPE@"
#define PROJECT_FULL_VERSION_STRING std::string("v") + PROJECT_FULL_REVISION + " " + BUILD_TYPE + " " + PROJECT_BUILD_DATE + " " + PROJECT_BUILD_TIME
#define PRINT_VERSION() spdlog::info("{:<15}: {}", PROJECT_NAME, PROJECT_FULL_VERSION_STRING)