cmake: Fail with an error message when empty libraries exist
cmake: Fail with an error message when empty libraries exist

A very annoying usability issue is that the error message is very
cryptic when you create a zephyr library that doesn't have any source
files. Creating such a library is very easy to do, so we should have a
good error message for it.

It was also considered to allow empty libraries to exist, but this was
decided against as they show up in the build output and can confuse
the end user.

Signed-off-by: Sebastian Bøe <edee888afd63e94916688495334700803eba20a0@nordicsemi.no>

aceofall/zephyr-iotos,aceofall/zephyr-iotos,punitvara/zephyr,finikorg/zephyr,galak/zephyr,mbolivar/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,aceofall/zephyr-iotos,mbolivar/zephyr,aceofall/zephyr-iotos,explora26/zephyr,galak/zephyr,zephyriot/zephyr,nashif/zephyr,aceofall/zephyr-iotos,GiulianoFranchetto/zephyr,nashif/zephyr,mbolivar/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,nashif/zephyr,finikorg/zephyr,kraj/zephyr,explora26/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,Vudentz/zephyr,finikorg/zephyr,galak/zephyr,Vudentz/zephyr,punitvara/zephyr,Vudentz/zephyr,zephyriot/zephyr,ldts/zephyr,mbolivar/zephyr,ldts/zephyr,mbolivar/zephyr,kraj/zephyr,ldts/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,zephyriot/zephyr,punitvara/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,kraj/zephyr,Vudentz/zephyr,punitvara/zephyr,zephyriot/zephyr,zephyriot/zephyr,explora26/zephyr,explora26/zephyr,nashif/zephyr,kraj/zephyr,explora26/zephyr,ldts/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,kraj/zephyr,GiulianoFranchetto/zephyr