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.