Create init_cache.cmake
In order to make configuration easier, we could create a simple text file name "init_cache.cmake" as initial cmake cache:
SET(BOOST_ROOT C:/boost/boost_1_53_0 CACHE PATH "Boost Root")SET(ENV{HDF5_ROOT} D:/coding/packages/HDF5 CACHE PATH "HDF5 Root")SET(ILMBASE_ROOT D:/coding/packages/ilmbase CACHE PATH "Ilmbase Root")SET(ZLIB_ROOT D:/coding/packages/zlib CACHE PATH "Zlib Root")SET(GLUT_ROOT_PATH D:/coding/packages/glut-3.7 CACHE PATH "Glut Root")SET(MAYA_ROOT C:/adsk/Maya2013 CACHE PATH "Maya Root");
SET(USE_PYALEMBIC OFF CACHE BOOL "Compile Python Binding")SET(USE_ARNOLD OFF CACHE BOOL "Use Arnold")
Ps. Please replace the path of each 3rd-party library in your local machine.
Modify CMakeLists.txt (optional)If we want to link static libraries of Ilmbase, we have to do little modification of CMakeLists.txt in line 80:#ADD_DEFINITIONS ( -DOPENEXR_DLL -DHALF_EXPORTS )
ADD_DEFINITIONS ( -DPLATFORM_BUILD_STATIC )
Someone posted a project file a while ago → https://groups.google.com/d/msg/alembic-discussion/Mn-NFIPvefM/QkJX40xbm9sJ.
If I would have to build PyAlembic I would also just try to set up a visual studio project like this.