generated from mcmarius/oop-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from rizesql/milestone-2
Milestone 2
- Loading branch information
Showing
59 changed files
with
1,972 additions
and
672 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
include(FetchContent) | ||
|
||
#set(_PROTOBUF_LIBPROTOBUF protobuf::libprotobuf) | ||
#set(_REFLECTION gRPC::grpc++_reflection) | ||
#if(CMAKE_CROSSCOMPILING) | ||
# find_program(_PROTOBUF_PROTOC protoc) | ||
#else() | ||
# set(_PROTOBUF_PROTOC $<TARGET_FILE:protobuf::protoc>) | ||
#endif() | ||
# | ||
FetchContent_Declare(googleapis | ||
URL https://github.com/googleapis/googleapis/archive/0e3b813b0d0da539eacbe86b8716feeed00943c5.tar.gz | ||
URL_HASH SHA256=44f3b9c73a5df760c4fad3cf0c5cc54732b881f00708308f7635ff75a13dcaa5 | ||
) | ||
FetchContent_MakeAvailable(googleapis) | ||
|
||
FetchContent_Declare(grpcxx | ||
# URL https://github.com/uatuko/grpcxx/archive/refs/tags/v0.1.4.tar.gz | ||
URL https://github.com/uatuko/grpcxx/archive/refs/tags/v0.2.0.tar.gz | ||
URL_HASH SHA256=ed0e0c6ccd44aabb9447de9030b9be092bfb97cb654d69c970cbefd7b7bb44da | ||
) | ||
FetchContent_MakeAvailable(grpcxx) | ||
|
||
FetchContent_Declare(libxid | ||
URL https://github.com/uatuko/libxid/archive/refs/tags/v0.1.0.tar.gz | ||
URL_HASH SHA256=31589bb5274c9d25a8b6c49ee04a6c76151f10082e7feb13314be02a4b2d58c8 | ||
) | ||
FetchContent_MakeAvailable(libxid) | ||
|
||
#include_directories(${CMAKE_SOURCE_DIR}/dependencies/sqlite) | ||
#find_package(SQLite3 REQUIRED) | ||
#include_directories(${CMAKE_SOURCE_DIR}/dependencies/sqlite_modern_cpp/hdr) | ||
|
||
#FetchContent_Declare(json | ||
# URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz | ||
# URL_HASH SHA256=d6c65aca6b1ed68e7a182f4757257b107ae403032760ed6ef121c9d55e81757d | ||
#) | ||
#FetchContent_MakeAvailable(json) | ||
|
||
|
||
set(protobuf_MODULE_COMPATIBLE TRUE) | ||
find_package(Protobuf REQUIRED) | ||
message(STATUS "Using protobuf ${Protobuf_VERSION}") | ||
|
||
find_package(spdlog REQUIRED) | ||
find_package(nlohmann_json REQUIRED) | ||
find_package(SQLite3 REQUIRED) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#cmake_path(SET googleapis_annotations_proto ${googleapis_SOURCE_DIR}/google/api/annotations.proto) | ||
#cmake_path(SET googleapis_annotations_header ${CMAKE_CURRENT_BINARY_DIR}/google/api/annotations.pb.h) | ||
#cmake_path(SET googleapis_annotations_source ${CMAKE_CURRENT_BINARY_DIR}/google/api/annotations.pb.cc) | ||
# | ||
#cmake_path(SET googleapis_http_proto ${googleapis_SOURCE_DIR}/google/api/http.proto) | ||
#cmake_path(SET googleapis_http_header ${CMAKE_CURRENT_BINARY_DIR}/google/api/http.pb.h) | ||
#cmake_path(SET googleapis_http_source ${CMAKE_CURRENT_BINARY_DIR}/google/api/http.pb.cc) | ||
|
||
cmake_path(SET googleapis_rpc_code_proto ${googleapis_SOURCE_DIR}/google/rpc/code.proto) | ||
cmake_path(SET googleapis_rpc_code_header ${CMAKE_CURRENT_BINARY_DIR}/google/rpc/code.pb.h) | ||
cmake_path(SET googleapis_rpc_code_source ${CMAKE_CURRENT_BINARY_DIR}/google/rpc/code.pb.cc) | ||
|
||
cmake_path(SET googleapis_rpc_status_proto ${googleapis_SOURCE_DIR}/google/rpc/status.proto) | ||
cmake_path(SET googleapis_rpc_status_header ${CMAKE_CURRENT_BINARY_DIR}/google/rpc/status.pb.h) | ||
cmake_path(SET googleapis_rpc_status_source ${CMAKE_CURRENT_BINARY_DIR}/google/rpc/status.pb.cc) | ||
|
||
set(googleapis_protos | ||
# ${googleapis_annotations_proto} | ||
# ${googleapis_http_proto} | ||
${googleapis_rpc_code_proto} | ||
${googleapis_rpc_status_proto} | ||
) | ||
|
||
set(googleapis_headers | ||
# ${googleapis_annotations_header} | ||
# ${googleapis_http_header} | ||
${googleapis_rpc_code_header} | ||
${googleapis_rpc_status_header} | ||
) | ||
|
||
set(googleapis_sources | ||
# ${googleapis_annotations_source} | ||
# ${googleapis_http_source} | ||
${googleapis_rpc_code_source} | ||
${googleapis_rpc_status_source} | ||
) | ||
|
||
add_custom_command( | ||
OUTPUT ${googleapis_headers} ${googleapis_sources} | ||
DEPENDS ${googleapis_protos} | ||
COMMAND ${Protobuf_PROTOC_EXECUTABLE} | ||
ARGS | ||
--proto_path=${googleapis_SOURCE_DIR} | ||
--proto_path=${Protobuf_INCLUDE_DIR} | ||
--cpp_out=${CMAKE_CURRENT_BINARY_DIR} | ||
${googleapis_protos} | ||
) | ||
|
||
add_library(googleapis | ||
${googleapis_sources} | ||
) | ||
|
||
target_include_directories(googleapis | ||
PUBLIC ${CMAKE_CURRENT_BINARY_DIR} | ||
PRIVATE ${Protobuf_INCLUDE_DIR} | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.