Revert "Removing test for add_library() with empty source list, since we can add them later with the target_sources() command."

This reverts commit d527b1db787c426517f7af357df0cd3ba9d9a12a.