nekoray_Mahdi-zarei/cmake/myproto.cmake
Nova 183c5e4236
fix tray again &&
fix table item update &&
improve cmake
2024-12-29 00:49:42 +03:30

15 lines
369 B
CMake

find_package(Protobuf CONFIG REQUIRED)
set(PROTO_FILES
core/cmd/nekobox_core/server/gen/libcore.proto
)
add_library(myproto STATIC ${PROTO_FILES})
target_link_libraries(myproto
PUBLIC
protobuf::libprotobuf
)
target_include_directories(myproto PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
protobuf_generate(TARGET myproto LANGUAGE cpp)