core: add version

This commit is contained in:
Vaxry
2025-04-12 20:10:52 +01:00
parent e85d7f611b
commit 123e6fafb1
5 changed files with 10 additions and 2 deletions

View File

@@ -1,10 +1,15 @@
cmake_minimum_required(VERSION 3.19)
file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
string(STRIP ${VER_RAW} VER)
project(
checkpoint
DESCRIPTION "Tiny reverse proxy that attempts to block AI scrapers"
VERSION ${VER}
)
set(CHECKPOINT_VERSION ${VER})
set(PISTACHE_BUILD_TESTS OFF)
set(PISTACHE_BUILD_FUZZ OFF)
@@ -20,6 +25,7 @@ set(CMAKE_CXX_STANDARD 23)
add_executable(checkpoint ${SRCFILES})
add_compile_options(-Wno-deprecated-declarations -Wno-deprecated)
add_compile_definitions(CHECKPOINT_VERSION="${CHECKPOINT_VERSION}")
find_package(PkgConfig REQUIRED)