Add CheckAtomic.cmake
Application need to test, if they need to build against atomic library (if they use atomic feature). In order to not deduplicate the code, ecm seems the right place to put this.
a copy of it: https://phabricator.kde.org/D16184
Akonadi needs this check in order to fix this bug properly: https://bugs.debian.org/961647