|Version 6 (modified by robe, 3 years ago)|
*** IMPORANT: Testers of CMake configuration wanted! Please, try to build GEOS with CMake and report any problems by submitting New Ticket. Patches welcome! ***
Building on Windows with CMake
This article describes how to use CMake build system to build and install GEOS from sources on Microsoft Windows systems using Visual C++ compiler.
Download "cmake-2.8.2-win32-x86.zip" from http://www.cmake.org/cmake/resources/software.html explode it on a path (eg: c:\cmake\") and add to the path the ../bin directory eg: SET PATH=c:\cmake\cmake-2.8.2-win32-x86\bin;%PATH% after this start a shell dos.
to create the project with cmake do this:
suppose for example the geos-trunk was downloaded in "c:\svn" you may create a new folder like "c:\test_geos" enter in "c:\test_geos" and run the command for the compiler you like use: (please notice the / instead of \)
c:\test_geo> cmake -G "Visual Studio 9 2008" ../svn
c:\test_geo>cmake -G "Visual Studio 9 2008 Win64" ../svn
c:\test_geo>cmake -G "NMake Makefiles" ../svn
with these commands cmake creates a VS nmake or solution file in the folder "c:\test_geos" able to compile GEOS