Add cmake file for testing externals.