cmake: remove duplicate code, enable testable APIs by default

Change-Id: If0adf52f01baed1ddc35198024289d888598f0d2
1 file changed