This patch adds WITH_CORTEX to CMake to build an _IECoreBlender.so module that can be imported into the embedded python interpreter to interface with cortex's IECore python module (after patching cortex for py3k support). Other than one call to BPy_GetContext (which would be nice to get rid of since it breaks being able to use it with bpy.so) it uses the C++ api exclusively for blender data access.
So far I've implemented exporters for meshes, point meshes and cameras but adding other types is fairly trivial at this point. Will add importers eventually too.
Still a bit of a WIP but functional enough to share so here we go.