The stellar population of the Lupus clouds