Hello. This is a patch which adds some CMake build scripts to synfig-core. The scripts are low-quality and not portable (it requires pthread and pkg-config), so maybe someone could improve it. I’m not an expert in CMake.
http://www.synfig.org/forums/viewtopic.php?f=22&t=4190#p18949
The code is licensed under WTFPL, so it can be used for anything, even relicensed.