Add CheckAtomic.cmake
Application need to test, if they need to build against atomic libray. In order to not duplicate the code over and over again, let's have one version in ecm.
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