Added check of yarp version in CMakeLists.txt