code: Initial Commit
This commit is contained in:
39
CMakeLists.txt
Normal file
39
CMakeLists.txt
Normal 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
|
||||
)
|
||||
Reference in New Issue
Block a user