wip. cmake list parser imported from old code.