Blame README.cmake.txt

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