add ECM to CMakeLists,

remove obsolete CONFIG