Added gRPC library

This commit is contained in:
SChernykh
2024-02-10 23:38:22 +01:00
parent 2ff6fb7b65
commit 0801d607a1
54 changed files with 73684 additions and 16721 deletions

View File

@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.10)
project(p2pool)
include(cmake/standard.cmake)
message(STATUS "Build environment:
System processor: ${CMAKE_SYSTEM_PROCESSOR}
C compiler: ${CMAKE_C_COMPILER} (${CMAKE_C_COMPILER_ID})
@@ -25,6 +27,8 @@ option(DEV_TRACK_MEMORY "[Developer only] Track memory allocations" OFF)
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT p2pool)
include(cmake/grpc.cmake)
add_subdirectory(external/src/Tari)
set(LIBS ${LIBS} Tari_gRPC)
@@ -178,7 +182,6 @@ include_directories(external/src/robin-hood-hashing/src/include)
if (WITH_UPNP)
include_directories(external/src/miniupnp/miniupnpc/include)
endif()
include_directories(external/src/protobuf-c)
if (WIN32)
set(LIBS ${LIBS} ws2_32 iphlpapi userenv psapi dnsapi dbghelp)
@@ -372,6 +375,8 @@ if (STATIC_BINARY OR STATIC_LIBS)
set(STATIC_LIBS ${STATIC_LIBS} resolv)
endif()
set(STATIC_LIBS ${STATIC_LIBS} Tari_gRPC grpc grpc++ libprotobuf)
target_link_libraries(${CMAKE_PROJECT_NAME}
"${CMAKE_SOURCE_DIR}/external/src/libzmq/build/lib/libzmq.a"
"${CMAKE_SOURCE_DIR}/external/src/libuv/build/libuv.a"