From f5a3dd5fa08f39c2331e0a4faf42ece96dc3d93b Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Thu, 11 Mar 2021 17:05:24 +0100 Subject: [BUILD] Build picohttpparser as independent library --- src/server/picohttpparser/.clang-format | 12 ------------ src/server/picohttpparser/CMakeLists.txt | 11 +++++++++++ 2 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 src/server/picohttpparser/.clang-format create mode 100644 src/server/picohttpparser/CMakeLists.txt (limited to 'src/server/picohttpparser') diff --git a/src/server/picohttpparser/.clang-format b/src/server/picohttpparser/.clang-format deleted file mode 100644 index 8738fdd..0000000 --- a/src/server/picohttpparser/.clang-format +++ /dev/null @@ -1,12 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# -# clang-format configuration file. Intended for clang-format >= 4. -# -# For more information, see: -# -# Documentation/process/clang-format.rst -# https://clang.llvm.org/docs/ClangFormat.html -# https://clang.llvm.org/docs/ClangFormatStyleOptions.html -# ---- -DisableFormat: true diff --git a/src/server/picohttpparser/CMakeLists.txt b/src/server/picohttpparser/CMakeLists.txt new file mode 100644 index 0000000..cc6ec96 --- /dev/null +++ b/src/server/picohttpparser/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.10) + +# set the project name +project(picohttpparser + LANGUAGES C) + +set(PICOHTTPPARSER_SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/picohttpparser.c) +set(PICOHTTPPARSER_HEADER_FILES ${CMAKE_CURRENT_SOURCE_DIR}/picohttpparser.h) + +add_library(picohttpparser STATIC ${PICOHTTPPARSER_SOURCE_FILES}) +target_include_directories(picohttpparser PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) -- cgit v1.2.3-55-g7522