If you know how to build the default legato.cwe, you can do the following:
go to legato-19.02.0/modules/WiFi/wifi.sdef, under “apps:” section, add
e.g.
$LEGATO_ROOT/apps/sample/helloWorld/helloWorld.adef
Now the new app will be included in legato.cwe.