[Cobalt CMake build] Adds dependency on generating protoc.

We need to make sure the protoc compiler has been built before
we attempt to use it.

Change-Id: I8d373869dab4e403acbef97188bbd2b121213ba5
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 71b512b..0e77387 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -65,6 +65,7 @@
   add_library(${LIB_NAME}
     ${_generated_srcs}
   )
+  add_dependencies(${LIB_NAME} build_external_projects)
   target_link_libraries(${LIB_NAME}
                         # TODO(pesk, rudominer) This is a problem. We cannot use protobuf_full.
                         # We have to use protobuf_lite.