Fix install path of http_parser.h

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
main
Jianhui Zhao 2020-07-01 14:48:42 +08:00
parent 95e6d5acbc
commit 43b7160cd9
3 changed files with 13 additions and 3 deletions

View File

@ -1,4 +1,9 @@
include_directories(${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/buffer ${CMAKE_BINARY_DIR}/src ${LIBEV_INCLUDE_DIR})
include_directories(
${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/src/http-parser
${CMAKE_SOURCE_DIR}/src/buffer
${CMAKE_BINARY_DIR}/src
${LIBEV_INCLUDE_DIR})
add_executable(example example.c)

View File

@ -9,7 +9,12 @@ set(UHTTPD_VERSION_PATCH 4)
# Check the third party Libraries
find_package(Libev REQUIRED)
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/buffer ${CMAKE_CURRENT_BINARY_DIR} ${LIBEV_INCLUDE_DIR})
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/http-parser
${CMAKE_CURRENT_SOURCE_DIR}/buffer
${CMAKE_CURRENT_BINARY_DIR}
${LIBEV_INCLUDE_DIR})
set(EXTRA_LIBS ${LIBEV_LIBRARY} m)

View File

@ -29,7 +29,7 @@
#include <stdarg.h>
#include <arpa/inet.h>
#include "http-parser/http_parser.h"
#include "http_parser.h"
#include "buffer.h"
#include "config.h"