Difference between revisions of "Build with CMake (experimental)"

From X-Moto
Jump to: navigation, search
 
(Run CMake)
Line 4: Line 4:
 
  cd builddir
 
  cd builddir
 
== Run CMake ==
 
== Run CMake ==
Set CMAKE_INSTALL_PREFIX by the path you want (remove it to get the default path)
+
cmake ../trunk
  cmake -DCMAKE_INSTALL_PREFIX=/tmp/xm ../trunk
+
 
 +
== Options ==
 +
-DCMAKE_SYSTEM_NAME Windows
 +
-DCMAKE_SYSTEM_NAME Linux
 +
  -DCMAKE_INSTALL_PREFIX=/tmp/xm

Revision as of 16:17, 10 August 2008

Get svn sources

Create a compilation directory

mkdir builddir
cd builddir

Run CMake

cmake ../trunk

Options

-DCMAKE_SYSTEM_NAME Windows
-DCMAKE_SYSTEM_NAME Linux
-DCMAKE_INSTALL_PREFIX=/tmp/xm