24 lines
313 B
CMake
24 lines
313 B
CMake
|
|
add_library(aGameProto
|
|
GameProto.proto
|
|
GameProto.h
|
|
GameProto.cpp
|
|
)
|
|
|
|
protobuf_generate(
|
|
LANGUAGE cpp
|
|
TARGET aGameProto
|
|
PROTOS GameProto.proto
|
|
)
|
|
|
|
target_include_directories(aGameProto
|
|
PUBLIC
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
|
|
target_link_libraries(aGameProto
|
|
PUBLIC
|
|
protobuf::libprotobuf
|
|
cyclone::cyclone
|
|
)
|