Utilize a macro/function page.

Remember that cmake is kind of linear in execution.
pcre is converted to cmake.
png is now cmake powered.
jsoncpp is cmake'd. Headers are back to normal.