wiki:BuildingOnWindowsWithCMake

Version 5 (modified by aperi2007, 14 years ago) ( diff )

--

*** 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

or

c:\test_geo>cmake -G "Visual Studio 9 2008 Win64" ../svn

or

c:\test_geo>cmake -G "NMake Makefiles" ../svn

with these commands cmake create a project able to compile geos in the path "c:\test_geos"

Open Tickets

No results

Note: See TracWiki for help on using the wiki.