7 | | GEOS has got equipped with configuration for CMake shortly after [milestone:3.2.0 GEOS 3.2.0] release (ticket #317), thus it is considered as work in progress, experimental. Hopefully, it will get into next release of [milestone:3.3.0 GEOS 3.3.0] version. |
| 7 | GEOS has got equipped with build configuration for CMake shortly after [milestone:3.2.0 GEOS 3.2.0] release (ticket #317), thus it is considered as work in progress, experimental. Hopefully, it will get into next release of [milestone:3.3.0 GEOS 3.3.0] version. |
| 8 | |
| 9 | == Requirements == |
| 10 | |
| 11 | * [http://www.cmake.org CMake] 2.6 or later |
| 12 | * Decent C++ compiler and C++ Standard Library, [http://gcc.gnu.org/ GNU GCC] 4.x recommended |
| 13 | * GEOS source code. Currently, only source code in SVN [source:trunk trunk] is configured for CMake |
| 14 | |
| 15 | == Configuring == |
| 16 | |
| 17 | |
| 18 | Important, it is highly recommended to configure build out of source code tree. |
| 19 | |
| 20 | {{{ |
| 21 | $ svn checkout http://svn.osgeo.org/geos/trunk trunk |
| 22 | $ mkdir build |
| 23 | $ ls |
| 24 | build trunk |
| 25 | $ cd build |
| 26 | $ cmake ../trunk |
| 27 | }}} |
| 28 | |
| 29 | There is collection of [http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Variables CMake variables] available to set by user to control various aspects of compilation and installation. For instance ''CMAKE_INSTALL_PREFIX'' variable which by default is set to ''/usr/local'' directory. |
| 30 | |
| 31 | == Building == |
| 32 | |
| 33 | {{{ |
| 34 | $ make |
| 35 | }}} |