now cmake stuff is simplified to a plugin + a static lib