mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 00:19:10 +08:00
e4096d6c17
* [gRPC] 1.36.4 * [upb] update to 2020-12-19 * update version * [upb] Fix config.cmake file * [grpc] Restore using system upb * [grpc][upb] Version db changes * [grpc][upb] Fix building upbdefs in grpc Co-authored-by: Jeong YunWon <jeong@youknowone.org> Co-authored-by: Jonliu1993 <13720414433@163.com>
50 lines
1.1 KiB
Diff
50 lines
1.1 KiB
Diff
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
|
|
index d4cbcc9..a6b432f 100644
|
|
--- a/cmake/CMakeLists.txt
|
|
+++ b/cmake/CMakeLists.txt
|
|
@@ -8,7 +8,7 @@ else()
|
|
cmake_policy(VERSION 3.12)
|
|
endif()
|
|
|
|
-cmake_minimum_required (VERSION 3.0)
|
|
+cmake_minimum_required (VERSION 3.14)
|
|
cmake_policy(SET CMP0048 NEW)
|
|
|
|
project(upb)
|
|
@@ -62,6 +62,7 @@ endif()
|
|
enable_testing()
|
|
|
|
add_library(port INTERFACE)
|
|
+add_library(descriptor_upbproto INTERFACE)
|
|
add_library(upb
|
|
../upb/decode.c
|
|
../upb/decode.int.h
|
|
@@ -162,4 +163,27 @@ target_link_libraries(upb_json
|
|
upb_pb)
|
|
add_library(wyhash INTERFACE)
|
|
|
|
+install(
|
|
+ DIRECTORY ../upb
|
|
+ DESTINATION include
|
|
+ FILES_MATCHING
|
|
+ PATTERN "*.h"
|
|
+ PATTERN "*.hpp"
|
|
+ PATTERN "*.inc"
|
|
+ PATTERN "*.int.h"
|
|
+)
|
|
+target_include_directories(upb PUBLIC $<INSTALL_INTERFACE:include>)
|
|
+install(TARGETS
|
|
+ upb
|
|
+ fastdecode
|
|
+ upb_json
|
|
+ upb_pb
|
|
+ port
|
|
+ table
|
|
+ descriptor_upbproto
|
|
+ handlers
|
|
+ reflection
|
|
+ EXPORT upb-config
|
|
+)
|
|
+install(EXPORT upb-config NAMESPACE upb:: DESTINATION share/upb)
|
|
|