Let users specify the builddir for cmake

This change lets users specify 'builddir' This is to enable
applications/libraries such as https://github.com/EttusResearch/uhd to
be built where the CMakeLists file isn't in the top level directory.
Merge pull request #394 from jcftang/wip-cmake-package-hook

Let users specify the builddir for cmake