I know how to use Cmake to run a program. For example, a trivial example like:
cmake :
cmake_minimum_required(VERSION 2.8) add_executable