Skip to content

Commit 254fc47

Browse files
committed
microservices added
1 parent 519744d commit 254fc47

File tree

5 files changed

+25
-1
lines changed

5 files changed

+25
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
build/*
1+
**/build/
22
*.user
33
*.kdev4
44
src/sandbox/*

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "vcpkg"]
55
path = vcpkg
66
url = https://github.com/microsoft/vcpkg
7+
[submodule "src/microservices/vcpkg"]
8+
path = src/microservices/vcpkg
9+
url = https://github.com/microsoft/vcpkg

src/microservices/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
cmake_minimum_required(VERSION 3.16.3)
2+
3+
if (NOT DEFINED CMAKE_TOOLCHAIN_FILE)
4+
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE PATH "toolchain file")
5+
endif()
6+
7+
message("toolchain file: ${CMAKE_TOOLCHAIN_FILE}")
8+
project(microservices)
9+
10+
find_package(gRPC CONFIG REQUIRED)
11+
12+
message("gRPC_FOUND: "${gRPC_FOUND})
13+
message("gRPC_VERSION: "${gRPC_VERSION})

src/microservices/vcpkg

Submodule vcpkg added at 86fba13

src/microservices/vcpkg.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "microservices",
3+
"version-string": "1.1.0",
4+
"dependencies": [
5+
{ "name": "grpc" }
6+
]
7+
}

0 commit comments

Comments
 (0)