Changes between Version 12 and Version 13 of BuildingOnUnixWithCMake


Ignore:
Timestamp:
Jan 30, 2010, 3:38:49 PM (14 years ago)
Author:
mloskot
Comment:

List CMake options

Legend:

Unmodified
Added
Removed
Modified
  • BuildingOnUnixWithCMake

    v12 v13  
    1313
    1414GEOS 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
     16Having 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
    1519
    1620== Requirements ==
     
    3539
    3640There 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
     42List 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
     48Example:
     49
     50{{{
     51$ cmake ../trunk -DGEOS_ENABLE_TESTS=ON -DGEOS_ENABLE_INLINE=OFF
     52}}}
    3753
    3854== Build ==