find_package(Protobuf)
if (Protobuf_FOUND)
    add_executable(struct_pb_example main.cpp)
    target_protos_struct_pb(struct_pb_example PUBLIC demo.proto)
    target_link_libraries(struct_pb_example PRIVATE libstruct_pb)

    add_executable(struct_pb_tutorial tutorial.cpp)
    target_protos_struct_pb(struct_pb_tutorial PRIVATE addressbook.proto)
    target_link_libraries(struct_pb_tutorial PRIVATE libstruct_pb)
endif()
