include R specific flags in cmake scripts
added script to automatically update CMakeList.txt