def StringToCMakeTargetName(a):
 return a.translate(string.maketrans(' /():."', '_______'))

def StringToCMakeTargetName ( a ) : return a . translate ( string . maketrans ( ' /():."' , '_______' ) )
converts the given string a to a valid cmake target name .