cmake: Put all dependencies together in CMake

Change-Id: Iac3205f9c57c153f614f0e3ed4d6d188fbc75949