diff options
author | Manuel Bentele | 2021-03-11 17:05:24 +0100 |
---|---|---|
committer | Manuel Bentele | 2021-03-11 18:18:37 +0100 |
commit | f5a3dd5fa08f39c2331e0a4faf42ece96dc3d93b (patch) | |
tree | c2668341163510210832887b91c301dd9b712d99 /src/server/picohttpparser | |
parent | [BUILD] Enable lint targets if lint programs are found (diff) | |
download | dnbd3-f5a3dd5fa08f39c2331e0a4faf42ece96dc3d93b.tar.gz dnbd3-f5a3dd5fa08f39c2331e0a4faf42ece96dc3d93b.tar.xz dnbd3-f5a3dd5fa08f39c2331e0a4faf42ece96dc3d93b.zip |
[BUILD] Build picohttpparser as independent library
Diffstat (limited to 'src/server/picohttpparser')
-rw-r--r-- | src/server/picohttpparser/.clang-format | 12 | ||||
-rw-r--r-- | src/server/picohttpparser/CMakeLists.txt | 11 |
2 files changed, 11 insertions, 12 deletions
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}) |