Declare project variable before adding plugins

it definitively fix cloudcompare/trunk#50