{{{ #!html

*** 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 and install [http://www.cmake.org/ CMake] 2.8+. If you install from zip package, unpack it (eg: into "C:\cmake\") and add the bin directory to the PATH: {{{ SET PATH=c:\cmake\cmake-2.8.2-win32-x86\bin;%PATH% }}} After this, start command prompt (cmd.exe). Alternatively, install from the fully-featured Windows installer and select option adding CMake runtime location to PATH environment variable. In order to create the project with cmake do this: suppose for example the GEOS trunk was downloaded in "C:\svn\geos-trunk" 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: {{{ C:\> cd test_geo C:\test_geo> cmake -G "Visual Studio 9 2008" C:\svn\geos-trunk }}} or {{{ C:\test_geo> cmake -G "Visual Studio 9 2008 Win64" c:\svn\geos-trunk }}} or {{{ c:\test_geo> cmake -G "NMake Makefiles" ../svn }}} with these commands cmake creates a NMAKE makefiles or Visual Studio solution and projects in the folder "c:\test_geos". Now you are able to build GEOS by loading GEOS.sln in Visual Studio IDE or from command line (use Visual Studio Command Prompt), depending on target CMake generator used in previous steps: {{{ c:\test_geo> nmake /f makefile }}} or {{{ c:\test_geo> msbuild GEOS.sln }}} = Open Tickets = [[TicketQuery(status=new|assigned|reopened&keywords~=cmake&order=priority)]]