cmake - add support to run ctest on android #2347
Add support to run binaries with ctest on android devices, ctest is not supported on iOS so we simply error out there.
The change is mostly for dev inner loop to quickly test android changes on device. It could be use with simulator on CI but haven't tested this.
Removed the test from shared lib build, mostly because it's not really cleanly done and that parts needs refactoring. So test on cmake will only be on static lib for now.