summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-05-03 02:28:16 -0400
committerMike Frysinger <vapier@gentoo.org>2016-05-03 02:28:16 -0400
commit8bdfede0a418ebaf43d18bd0750f18fdd012301c (patch)
tree78fc305b265613e26e870a1208977fe3ce69fab2 /docs
parent6f3552d0d4da3aa079a5184bef064b43a3556db7 (diff)
downloadlibgd-8bdfede0a418ebaf43d18bd0750f18fdd012301c.tar.gz
cmake: document the common build/install steps #179
Diffstat (limited to 'docs')
-rw-r--r--docs/README.CMAKE19
1 files changed, 13 insertions, 6 deletions
diff --git a/docs/README.CMAKE b/docs/README.CMAKE
index 9c76d99..213a181 100644
--- a/docs/README.CMAKE
+++ b/docs/README.CMAKE
@@ -1,12 +1,13 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$Id$
-Tobuild GD using CMake, all you need is (add the cmake options if you need any
+
+To build GD using CMake, all you need is (add the cmake options if you need any
or if the default libs and include paths are not the default) :
-In a sub directory:
+In a sub directory of the top level:
$ mkdir bld
$ cd bld
-$ cmake -DBUILD_TEST=1 <options>
+$ cmake -DBUILD_TEST=1 <options> ..
+$ make
The available options are:
ENABLE_PNG=1
@@ -17,19 +18,25 @@ ENABLE_FONTCONFIG=1
ENABLE_XPM=1
ENABLE_WEBP=1
-You can optionnally run our tests suite using:
+You can optionally run our tests suite using:
$ ctest .
Or if you like to build in the source tree:
$ cmake -DBUILD_TEST=1 .
+$ make
$ ctest .
Add "-DCMAKE_BUILD_TYPE=DEBUG" if you like to have a debug version.
+To install, just run:
+$ make install
+Or to to install to a different path:
+$ make install DESTDIR=/some/other/place
Typical usage with only PNG enabled:
-This command generates VS7 project files and add some custom libraries and includes directories (libpng in this case):
+This command generates VS7 project files and add some custom libraries and
+includes directories (libpng in this case):
cmake -DCMAKE_GENERATOR="Visual Studio 7 .NET 2003" -DENABLE_PNG=1 -DCMAKE_LIBRARY_PATH=c:\gd_build\gd_deps\lib -DCMAKE_INCLUDE_PATH=c:\gd_build\gd_deps\include c:\libgd_src