mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
15 lines
352 B
CMake
15 lines
352 B
CMake
find_package(Protobuf CONFIG REQUIRED)
|
|
|
|
set(PROTO_FILES
|
|
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)
|