use a common cmake file for examples