Fix install path of http_parser.h
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>main
parent
95e6d5acbc
commit
43b7160cd9
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue