Blame README.cmake.txt

Packit 0d464f
Build IlmBase and OpenEXR on Windows using cmake
Packit 0d464f
------------------
Packit 0d464f
Packit 0d464f
What follows are instructions for generating Visual Studio solution 
Packit 0d464f
files and building those two packages
Packit 0d464f
Packit 0d464f
1. Launch a command window, navigate to the IlmBase folder with 
Packit 0d464f
CMakeLists.txt,and type command:
Packit 0d464f
	setlocal
Packit 0d464f
	del /f CMakeCache.txt
Packit 0d464f
	cmake
Packit 0d464f
      -DCMAKE_INSTALL_PREFIX=<where you want to install the ilmbase builds>
Packit 0d464f
      -G "Visual Studio 10 Win64" 
Packit 0d464f
      ..\ilmbase
Packit 0d464f
Packit 0d464f
2. Navigate to IlmBase folder in Windows Explorer, open ILMBase.sln
Packit 0d464f
and build the solution. When it build successfully, right click 
Packit 0d464f
INSTALL project and build. It will install the output to the path
Packit 0d464f
you set up at the previous step.  
Packit 0d464f
Packit 0d464f
3. Go to http://www.zlib.net and download zlib 
Packit 0d464f
	  
Packit 0d464f
4. Launch a command window, navigate to the OpenEXR folder with 
Packit 0d464f
CMakeLists.txt, and type command:	  
Packit 0d464f
	setlocal
Packit 0d464f
	del /f CMakeCache.txt
Packit 0d464f
	cmake 
Packit 0d464f
      -DZLIB_ROOT=<zlib location>
Packit 0d464f
      -DILMBASE_PACKAGE_PREFIX=<where you installed the ilmbase builds>
Packit 0d464f
      -DCMAKE_INSTALL_PREFIX=<where you want to instal the openexr builds>
Packit 0d464f
      -G "Visual Studio 10 Win64" ^
Packit 0d464f
      ..\openexr
Packit 0d464f
Packit 0d464f
5. Navigate to OpenEXR folder in Windows Explorer, open OpenEXR.sln
Packit 0d464f
and build the solution. When it build successfully, right click 
Packit 0d464f
INSTALL project and build. It will install the output to the path
Packit 0d464f
you set up at the previous step. 
Packit 0d464f
Packit 0d464f
Packit 0d464f
Packit 0d464f
-------------
Packit 0d464f
-- OpenEXR --
Packit 0d464f
-------------
Packit 0d464f
initial bootstraping:
Packit 0d464f
    cmake -DILMBASE_PACKAGE_PREFIX=<location of installed IlmBase files> -DCMAKE_INSTALL_PREFIX=<install location> <source location of OpenEXR>
Packit 0d464f
Packit 0d464f
build the actual code base:
Packit 0d464f
    make -j 4
Packit 0d464f
Packit 0d464f
for testing do:
Packit 0d464f
    make test
Packit 0d464f
Packit 0d464f
then to install to your chosen location:
Packit 0d464f
    make install