mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-18 11:39:00 +02:00
Doc: Add chapter about CMake build to getting started guide
This commit is contained in:
@@ -288,6 +288,33 @@ available:
|
|||||||
$ ./configure --omit=NetSSL_OpenSSL,Crypto,Data/ODBC,Data/MySQL
|
$ ./configure --omit=NetSSL_OpenSSL,Crypto,Data/ODBC,Data/MySQL
|
||||||
----
|
----
|
||||||
|
|
||||||
|
!!Building using CMake
|
||||||
|
|
||||||
|
As an alternative to the platform specific Makefiles and Solutions, CMake can be used
|
||||||
|
to do build Poco. CMake is a cross platform Makefile generator that also supports
|
||||||
|
Microsoft Visual Studio and Apple XCode.
|
||||||
|
Poco requires CMake 3.0 or higher. Static binaries for many platforms can be downloaded from http://www.cmake.org/
|
||||||
|
|
||||||
|
CMake supports out of source builds and this is the recommended way to build Poco using CMake.
|
||||||
|
|
||||||
|
Assuming you are currently in the Poco source directory on a Unix machine
|
||||||
|
and you like to build Poco with the generated Makefiles just type the following commands.
|
||||||
|
|
||||||
|
$ mkdir cmake_build
|
||||||
|
$ cd cmake_build
|
||||||
|
$ cmake ..
|
||||||
|
$ make
|
||||||
|
|
||||||
|
This will build Poco in a subdirectory cmake_build. All files produced during build are located in this directory.
|
||||||
|
|
||||||
|
CMake allows you to set some build time options. As an example: to disable the SevenZip support
|
||||||
|
type the following command:
|
||||||
|
|
||||||
|
$ cmake -DENABLE_SEVENZIP=OFF ..
|
||||||
|
|
||||||
|
Similar options are available for other components (see: CMakeLists.txt).
|
||||||
|
----
|
||||||
|
|
||||||
|
|
||||||
!!!Tutorials And Sample Code
|
!!!Tutorials And Sample Code
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user