pendency on the
imported gflags library target:</p>
<pre>
   add_executable(foo main.cc)
   target_link_libraries(foo gflags)
</pre>

<h2> <A name=bazel>Declare dependency on gflags with Bazel</A></h2>

<p>To use gflags within a project which uses <A href="https://bazel.build/">Bazel</A> as build tool,
add the following lines to your <code>WORKSPACE</code> file
(see also Bazel documentation of <A href="https://www.bazel.io/versions/master/docs/be/workspace.html#git_repository">git_repository</A>):

<pre>
gi