cmake: Add flag to disable all the tests

Change-Id: I79d80d712b2d48c8df2c4183ea69230e4be70b7b