aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/http-parser/CMakeLists.txt
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/http-parser/CMakeLists.txt
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/http-parser/CMakeLists.txt')
-rw-r--r--vcpkg/ports/http-parser/CMakeLists.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/http-parser/CMakeLists.txt b/vcpkg/ports/http-parser/CMakeLists.txt
new file mode 100644
index 0000000..cf3961c
--- /dev/null
+++ b/vcpkg/ports/http-parser/CMakeLists.txt
@@ -0,0 +1,27 @@
+cmake_minimum_required(VERSION 3.4)
+project(http-parser C)
+
+if(CMAKE_BUILD_TYPE MATCHES "Release")
+ add_definitions(-DHTTP_PARSER_STRICT=0)
+endif()
+
+add_library(http_parser http_parser.c http_parser.h)
+
+target_include_directories(http_parser PUBLIC $<INSTALL_INTERFACE:include>)
+
+install(
+ TARGETS http_parser
+ EXPORT NODEJS_HTTP_PARSER_ALL_TARGETS
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+ RUNTIME DESTINATION bin
+)
+
+install(
+ EXPORT NODEJS_HTTP_PARSER_ALL_TARGETS
+ NAMESPACE unofficial::http_parser::
+ FILE unofficial-http-parser-config.cmake
+ DESTINATION share/unofficial-http-parser
+)
+
+install(FILES http_parser.h DESTINATION include)