code: Initial Commit

This commit is contained in:
Vaxry
2025-04-12 20:06:56 +01:00
parent cf925610f4
commit fdc616ac69
23 changed files with 1349 additions and 0 deletions

39
CMakeLists.txt Normal file
View File

@@ -0,0 +1,39 @@
cmake_minimum_required(VERSION 3.19)
project(
checkpoint
DESCRIPTION "Tiny reverse proxy that attempts to block AI scrapers"
)
set(PISTACHE_BUILD_TESTS OFF)
set(PISTACHE_BUILD_FUZZ OFF)
add_subdirectory(subprojects/pistache)
add_subdirectory(subprojects/fmt)
add_subdirectory(subprojects/tinylates)
add_subdirectory(subprojects/glaze)
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
set(CMAKE_CXX_STANDARD 23)
add_executable(checkpoint ${SRCFILES})
add_compile_options(-Wno-deprecated-declarations -Wno-deprecated)
find_package(PkgConfig REQUIRED)
pkg_check_modules(deps IMPORTED_TARGET openssl sqlite3)
target_include_directories(checkpoint
PRIVATE
"./subprojects/pistache/include"
"./subprojects/pistache/subprojects/cpp-httplib"
"./subprojects/pistache/subprojects/hinnant-date/include"
)
target_link_libraries(checkpoint
PkgConfig::deps
pistache
fmt
tinylates
)