Skip to content

Commit 4874d1a

Browse files
committed
Project version
1 parent 6d4055a commit 4874d1a

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ if(NOT CMAKE_CXX_STANDARD)
44
set(CMAKE_CXX_STANDARD 20)
55
endif()
66

7-
project(libhat)
7+
set(LIBHAT_VERSION_MAJOR 0)
8+
set(LIBHAT_VERSION_MINOR 1)
9+
set(LIBHAT_VERSION_PATCH 0)
10+
set(LIBHAT_VERSION ${LIBHAT_VERSION_MAJOR}.${LIBHAT_VERSION_MINOR}.${LIBHAT_VERSION_PATCH})
11+
12+
project(libhat
13+
VERSION ${LIBHAT_VERSION}
14+
DESCRIPTION "A high-performance, modern, C++20 library designed around game hacking"
15+
HOMEPAGE_URL "https://github.com/BasedInc/libhat"
16+
)
817

918
option(LIBHAT_STATIC_C_LIB "Build a static version of the C library" OFF)
1019
option(LIBHAT_SHARED_C_LIB "Build a shared version of the C library" OFF)

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ A modern, high-performance library for C++20 designed around game hacking
88
- Convenience wrappers over OS APIs
99
- Language bindings (C, C#, etc.)
1010

11+
## Versioning
12+
This project adheres to [semantic versioning](https://semver.org/spec/v2.0.0.html). Any declaration that
13+
is within a `detail` or `experimental` namespace is not considered part of the public API, and usage
14+
may break at any time without the MAJOR version number being incremented.
15+
1116
## Benchmarks
1217
The table below compares the single threaded throughput in bytes/s (real time) between
1318
libhat and [two other](test/benchmark/vendor) commonly used implementations for pattern

0 commit comments

Comments
 (0)