forked from janelia-flyem/buildem
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhttp_parser.cmake
29 lines (24 loc) · 938 Bytes
/
http_parser.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
set (CMAKE_INCLUDE_CURRENT_DIR On)
external_git_repo (http_parser
HEAD
https://github.com/nodejs/http-parser)
ExternalProject_Add( ${http_parser_NAME}
PREFIX ${BUILDEM_DIR}
GIT_REPOSITORY ${http_parser_URL}
GIT_TAG ${http_parser_TAG}
UPDATE_COMMAND ""
PATCH_COMMAND ""
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ${BUILDEM_ENV_STRING} make package
INSTALL_COMMAND
${CMAKE_COMMAND} -E copy
${http_parser_SRC_DIR}/libhttp_parser.a ${BUILDEM_LIB_DIR};
)
ExternalProject_add_step(${http_parser_NAME} install_include
DEPENDEES install
COMMAND ${CMAKE_COMMAND} -E copy ${http_parser_SRC_DIR}/http_parser.h ${BUILDEM_INCLUDE_DIR}
)