Remove unused CMake code to get number of mono source files. wxUSE_BASE=1 is also defined in wx_set_target_properties. There seems no reason to define _LIB and DLL_EXPORTS, wx does not use it. They were probably added because the vcxproj files have them.