1 set(protoc_files 2 ${protobuf_source_dir}/src/google/protobuf/compiler/main.cc 3 ) 4 5 add_executable(protoc ${protoc_files}) 6 target_link_libraries(protoc libprotobuf libprotoc) 7