mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-04 00:23:25 +08:00
c5d57c03ee
* Replace protobuf 2.6.1 with 3.21.8 * Update/add protobuf libs * Add CS2 protos * Remove old csgo/dota protos * Add versioned protoc bin * Comment out Valve's `schema` define for now * Use ENetworkDisconnectionReason * Fix-up `offsetof` to avoid errors on some Clang versions
14 lines
326 B
CMake
14 lines
326 B
CMake
set(protoc_files
|
|
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/main.cc
|
|
)
|
|
|
|
add_executable(protoc ${protoc_files} ${protobuf_version_rc_file})
|
|
target_link_libraries(protoc
|
|
libprotoc
|
|
libprotobuf
|
|
)
|
|
add_executable(protobuf::protoc ALIAS protoc)
|
|
|
|
set_target_properties(protoc PROPERTIES
|
|
VERSION ${protobuf_VERSION})
|