mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 10:19:00 +08:00
d30657b533
* [ms-quic] create a new port * rewrite to fix garbled history of #18225 * [ms-quic] update port/version SHA * [ms-quic] disable windows-static triplet * Update ports/ms-quic/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/ms-quic/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [ms-quic] update patch files * [ms-quic] make quictls only * reduce feature list for future updates * update version SHA Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
68 lines
2.3 KiB
Diff
68 lines
2.3 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 96ea265..87eaed5 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -647,6 +647,8 @@ if(QUIC_CODE_CHECK)
|
|
endif()
|
|
endif()
|
|
|
|
+include(GNUInstallDirs)
|
|
+
|
|
add_subdirectory(src/inc)
|
|
|
|
# Product code
|
|
@@ -657,6 +659,8 @@ add_subdirectory(src/bin)
|
|
# Tool code
|
|
if(QUIC_BUILD_TOOLS)
|
|
add_subdirectory(src/tools)
|
|
+ install(TARGETS quicattack quicinterop quicinteropserver quicipclient quicipserver
|
|
+ quicpcp quicping quicpost quicreach quicsample spinquic)
|
|
endif()
|
|
|
|
# Performance code
|
|
diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt
|
|
index 4dda469..2797670 100644
|
|
--- a/src/bin/CMakeLists.txt
|
|
+++ b/src/bin/CMakeLists.txt
|
|
@@ -29,7 +29,7 @@ endif()
|
|
|
|
target_include_directories(msquic PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../inc>
|
|
- $<INSTALL_INTERFACE:${include_dest}>)
|
|
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
|
|
|
set(PUBLIC_HEADERS
|
|
../inc/msquic.h
|
|
@@ -37,14 +37,17 @@ set(PUBLIC_HEADERS
|
|
../inc/msquic_posix.h
|
|
../inc/quic_sal_stub.h)
|
|
|
|
-install(TARGETS msquic EXPORT msquic DESTINATION "${main_lib_dest}")
|
|
-install(FILES ${PUBLIC_HEADERS} DESTINATION "${include_dest}")
|
|
+install(TARGETS msquic EXPORT msquic-targets
|
|
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
+install(FILES ${PUBLIC_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
|
|
|
configure_file(msquic-config.cmake.in ${CMAKE_BINARY_DIR}/msquic-config.cmake)
|
|
|
|
-install(FILES ${CMAKE_BINARY_DIR}/msquic-config.cmake DESTINATION ${msquic_dest})
|
|
+install(FILES ${CMAKE_BINARY_DIR}/msquic-config.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/msquic)
|
|
|
|
-install(EXPORT msquic DESTINATION ${msquic_dest})
|
|
+install(EXPORT msquic-targets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/msquic)
|
|
|
|
if(WIN32)
|
|
add_library(msquic.lttng INTERFACE)
|
|
diff --git a/src/bin/msquic-config.cmake.in b/src/bin/msquic-config.cmake.in
|
|
index dd67624..c561361 100644
|
|
--- a/src/bin/msquic-config.cmake.in
|
|
+++ b/src/bin/msquic-config.cmake.in
|
|
@@ -1,4 +1,4 @@
|
|
include(CMakeFindDependencyMacro)
|
|
@FILENAME_DEP_REPLACE@
|
|
|
|
-include(${SELF_DIR}/msquic.cmake)
|
|
+include(${SELF_DIR}/msquic-targets.cmake)
|