Difference between revisions of "Building with CMake"

From Sim-Im
Jump to navigation Jump to search
 
Line 15: Line 15:
  
 
=== Environment ===
 
=== Environment ===
Once you've installed all requried packages, make sure you've set the following environment variables correct-
+
Once you've installed all requried packages, make sure you've set the following environment variables correct:
QTDIR (the path to your Qt3 installation)
+
* '''QTDIR''' - the path to your Qt3 installation  
CMAKE_INCLUDE_PATH (all paths to the headers of the installed packages - for example D:\Programm\GnuWin32\Include;D:\Programm\OpneSSL\Include)
+
* '''CMAKE_INCLUDE_PATH''' -  paths to the headers of all installed packages
CMAKE_LIBRARY_PATH (all paths to the libraries of the installed packages - for example D:\Programm\GnuWin32\Lib;D:\Programm\OpenSSL\Lib\MSVC)
+
* '''CMAKE_LIBRARY_PATH''' - paths to the libraries of all installed packages
 +
 
 +
For example:
 +
C:\>set
 +
QTDIR=<nowiki>[TODO: write an example value here]</nowiki>
 +
CMAKE_INCLUDE_PATH=D:\Programm\GnuWin32\Include;D:\Programm\OpneSSL\Include
 +
CMAKE_LIBRARY_PATH=D:\Programm\GnuWin32\Lib;D:\Programm\OpenSSL\Lib\MSVC
 +
If some values are missing, use should set them using <code>set</code> command:
 +
  C:\>set QTDIR=<nowiki>[TODO: write an example value here]</nowiki>
 +
  C:\>set CMAKE_INCLUDE_PATH=%CMAKE_INCLUDE_PATH%;D:\Programm\OpneSSL\Include
 +
 
 
=== Compilation ===
 
=== Compilation ===
 
After you've checked out the sources, create a new directory 'sim-im-build'.  
 
After you've checked out the sources, create a new directory 'sim-im-build'.  

Revision as of 22:53, 28 September 2007

Building for Linux

Building for Windows

Requirements

Environment

Once you've installed all requried packages, make sure you've set the following environment variables correct:

  • QTDIR - the path to your Qt3 installation
  • CMAKE_INCLUDE_PATH - paths to the headers of all installed packages
  • CMAKE_LIBRARY_PATH - paths to the libraries of all installed packages

For example:

C:\>set
QTDIR=[TODO: write an example value here]
CMAKE_INCLUDE_PATH=D:\Programm\GnuWin32\Include;D:\Programm\OpneSSL\Include
CMAKE_LIBRARY_PATH=D:\Programm\GnuWin32\Lib;D:\Programm\OpenSSL\Lib\MSVC

If some values are missing, use should set them using set command:

 C:\>set QTDIR=[TODO: write an example value here]
 C:\>set CMAKE_INCLUDE_PATH=%CMAKE_INCLUDE_PATH%;D:\Programm\OpneSSL\Include

Compilation

After you've checked out the sources, create a new directory 'sim-im-build'. Now you can call cmake (or cmakesetup on win32) by switching into 'sim-im-build':

cmake ..\sim-im 

When cmake is ready and all required packages were found you can start compiling sim with 'make' (or mingw32-make or nmake)