Add test for elasticsearch in cmake
Add test for elasticsearch in cmake

If the elasticsearch module is not built, the alert module should also
not be compiled.

haka-security/haka,Wingless-Archangel/haka,LubyRuffy/haka,nabilbendafi/haka,lcheylus/haka,Wingless-Archangel/haka,lcheylus/haka,nabilbendafi/haka,haka-security/haka,nabilbendafi/haka,lcheylus/haka,LubyRuffy/haka,haka-security/haka