Hi, Here is the reference my stackoverflow post. I hope someone here can point me into right direction. Even if you can just help with automation of directory creation and running secondary cmake it would be helpful. http://stackoverflow.com/questions/16930996/cmake-auto-generate-build-directory Regards, Gennadiy