Changes between Version 12 and Version 13 of BuildingOnUnixWithCMake
- Timestamp:
- Jan 30, 2010, 3:38:49 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingOnUnixWithCMake
v12 v13 13 13 14 14 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. 15 16 Having CMake installed on Unix-like system, there are two ways of [http://www.cmake.org/cmake/help/runningcmake.html running CMake] to configure and build a software with CMake: 17 * cmake - [http://en.wikipedia.org/wiki/Command-line_interface CLI] program accepting options or running in ''interactive mode'' 18 * ccmake - program with curses-based GUI 15 19 16 20 == Requirements == … … 35 39 36 40 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. 41 42 List of CMake options specific to GEOS: 43 44 * GEOS_ENABLE_TESTS - Set to OFF|ON (default) to control build of GEOS tests package 45 * GEOS_ENABLE_INLINE - Set to OFF|ON (default) to control GEOS compilation with small functions inlining 46 * GEOS_ENABLE_ASSERT - Set to ON|OFF (default) to build GEOS with assert() macro enabled (not available for Visual C++ compiler) 47 48 Example: 49 50 {{{ 51 $ cmake ../trunk -DGEOS_ENABLE_TESTS=ON -DGEOS_ENABLE_INLINE=OFF 52 }}} 37 53 38 54 == Build ==