Add cmake functions for adding binaries and tests. Change-Id: Ib93cd5d087d4018d8c7d947d3d10e1f031d8e590