Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ project(snfm)

set ( Protobuf_USE_STATIC_LIBS ON )
find_package(Protobuf REQUIRED)
find_library (UPB_LIBRARIES NAMES upb)
if (UPB_LIBRARIES)
add_library(protobuf::libupb STATIC IMPORTED)
add_executable(protobuf::protoc-gen-upb IMPORTED)
add_executable(protobuf::protoc-gen-upbdefs IMPORTED)
add_executable(protobuf::protoc-gen-upb_minitable IMPORTED)
endif()
find_package(gRPC CONFIG REQUIRED)
find_package(yaml-cpp REQUIRED)
# Force wxwidgets to turn off debug build
Expand Down Expand Up @@ -126,4 +133,6 @@ add_custom_command(
TARGET send_file POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}/snfm_user_manual.md
${CMAKE_CURRENT_BINARY_DIR}/snfm_user_manual.md)

${CMAKE_CURRENT_BINARY_DIR}/snfm_user_manual.md)

Loading