[cmake] don't build tests if BUILD_TESTING=off

If BUILD_TESTING is off we neither add the TestRunner executable
nor add all the tests.
[cmake] Add explanation why we use -Wno-deprecated-dec..

We only use it for TestRunner. See added comment for why.
Merge pull request #287 from gicmo/no_test

like it