Changes between Version 32 and Version 33 of BuildingOnUnixWithCMake
- Timestamp:
- Oct 6, 2020, 1:29:31 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingOnUnixWithCMake
v32 v33 27 27 == Configure == 28 28 29 It is highly recommended to build GEOS outside of the source code tree. For this purpose, prepare a build directory(from now on referred to as ''BUILDDIR''):29 It is recommended to build GEOS outside of the source code tree. To do this, use a `build` directory beside the source directory `geos` (from now on referred to as ''BUILDDIR''): 30 30 31 31 {{{ … … 41 41 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. 42 42 43 List of CMake options specific to GEOS: 43 === List of CMake options specific to GEOS === 44 44 45 45 * GEOS_ENABLE_TESTS - Set to OFF|ON (default) to control build of GEOS tests package … … 63 63 == Build == 64 64 65 In order to build GEOS C++ and C libraries, issue the commandin ''BUILDDIR'':65 To build, run `make` in ''BUILDDIR'': 66 66 67 67 {{{ … … 69 69 }}} 70 70 71 This creates: 72 * GEOS C++ and C libraries in `lib` 73 * Testing executables in `bin` 74 71 75 == Test == 72 76 73 In the CMake build system, testing capabilities are provided by [http://www.itk.org/Wiki/CTest:FAQ CTest], which is distributed together with CMake.77 Under CMake testing is performed by [http://www.itk.org/Wiki/CTest:FAQ CTest], which is distributed together with CMake. 74 78 75 After the build is ready, tests can be executed from inside''BUILDDIR''. Natively, CMake uses a target named ''test'':79 After the build is ready, tests can be executed in ''BUILDDIR''. Natively, CMake uses a target named ''test'': 76 80 77 81 {{{ … … 79 83 }}} 80 84 81 For convenience, Autotools-like alias is alsoavailable:85 For convenience, an Autotools-like target is available: 82 86 83 87 {{{ … … 85 89 }}} 86 90 87 It is also possible to run the ''ctest'' program directly, without using a ''make'' target. This option gives access to a number of''ctest'' command line options (see ''ctest --help'' for a listing).91 It is possible to run the ''ctest'' program directly, without using a ''make'' target. This gives access to ''ctest'' command line options (see ''ctest --help'' for a listing). 88 92 89 93 {{{