Initial commit

This commit is contained in:
2024-05-29 11:22:00 +02:00
commit 4dd36db312
4 changed files with 180 additions and 0 deletions

35
CMakeLists.txt Normal file
View File

@@ -0,0 +1,35 @@
cmake_minimum_required(VERSION 3.14)
project(noolite-srv LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_executable(noolite-srv
main.cpp
)
include(FetchContent)
# cpp-httplib
FetchContent_Declare(
httplib
GIT_REPOSITORY https://gogs.dended.keenetic.pro/ded/cpp-httplib.git
GIT_TAG master
)
FetchContent_MakeAvailable(httplib)
# noolite
FetchContent_Declare(
noolite
GIT_REPOSITORY https://gogs.dended.keenetic.pro/ded/noolitelib.git
GIT_TAG master
)
FetchContent_MakeAvailable(noolite)
target_link_libraries(noolite-srv httplib noolite)
include(GNUInstallDirs)
install(TARGETS noolite-srv
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)