I have been encountering the same problem as rahra.
I have managed to change both about.cpp and chart.cpp to have wx/version.h, but am now getting the following error :
[ 38%] Building CXX object CMakeFiles/opencpn.dir/src/about.cpp.o
/home/ubuntu/OpenCPN/src/about.cpp:51:57: error: 'VERSION_MAJOR' was not declared in this scope
/home/ubuntu/OpenCPN/src/about.cpp:52:57: error: 'VERSION_MINOR' was not declared in this scope
/home/ubuntu/OpenCPN/src/about.cpp:53:57: error: 'VERSION_PATCH' was not declared in this scope
/home/ubuntu/OpenCPN/src/about.cpp:54:27: error: 'VERSION_DATE' was not declared in this scope
make: *** [CMakeFiles/opencpn.dir/src/about.cpp.o] Error 1
make: *** [CMakeFiles/opencpn.dir/all] Error 2
make: *** [all] Error 2
rahra, what did you do to fix this error?