f7a05844eb
We follow the findProtobuf.cmake naming convention to ease the use of protobuf as cmake subproject
8 lines
219 B
CMake
8 lines
219 B
CMake
set(protoc_files
|
|
${protobuf_source_dir}/src/google/protobuf/compiler/main.cc
|
|
)
|
|
|
|
add_executable(protoc ${protoc_files})
|
|
target_link_libraries(protoc libprotobuf libprotoc)
|
|
add_executable(protobuf::protoc ALIAS protoc)
|