Fix in CMakeList.txt

added "project" macro-> this enables some initial check and fix linking
issue. Without this line, Cmake assume that linker will not support
shared libaries therefore if yarp is compiled as shared lib, the executable
created (Exec) won't work at runtime.

added cmake_minimum_required - sanity check