What OS are you on?
Installing in Ubuntu is as simple as cloning tensorflow repo, installing bazel, and building everything.
In Windows, things are more complicated for building your app outside of tensorfle, but keeping it inside (e.g. under tensorflow/cc/example, as C++ guide suggests) allowes bazel to build it, linking tensorflow statically.
I haven't tried building with CMake outside of Windows, but, while it works in Windows, it rebuilds basically everything (with a single build process, which takes literally hours!). Besides, official CMake support will be dropped in the upcoming version...