summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Irwin <antumdeluge@gmail.com>2022-07-18 09:09:30 -0700
committerjak1 <jak1@themanaworld.org>2022-12-18 17:24:32 +0000
commit3ad822e4d2b4232c72d7b39185bbe660d40c0b45 (patch)
tree2627dcc6ad4f8f11cb4f9f8a42290ce99cb02baf
parent0400eac96a69a322fd6d77868eb7edad81cc860f (diff)
downloadmv-3ad822e4d2b4232c72d7b39185bbe660d40c0b45.tar.gz
mv-3ad822e4d2b4232c72d7b39185bbe660d40c0b45.tar.bz2
mv-3ad822e4d2b4232c72d7b39185bbe660d40c0b45.tar.xz
mv-3ad822e4d2b4232c72d7b39185bbe660d40c0b45.zip
Add CMake build instructions
-rw-r--r--INSTALL14
1 files changed, 14 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index 9b539bd8f..e7fbfe244 100644
--- a/INSTALL
+++ b/INSTALL
@@ -45,6 +45,8 @@ you to figure this out.
2. Compiling And Installing ManaPlus
====================================
+Building with GNU Autotools
+
1) Go to the directory you have extracted the source to.
2) If you've cloned the Git repository, run "autoreconf -i" to generate
configure and install any missing auxiliary files.
@@ -64,3 +66,15 @@ a different prefix to configure as usual.
Rebuild the executable from scratch using "make clean" and then "make".
+
+Building with CMake
+
+1) Create a directory for building and change to that directory.
+2) Configure the build with: cmake <path_to_source>
+3) Compile with: cmake --build ./
+4) Copy files to install directory with: cmake --install ./
+
+ NOTES:
+ - To set output directory for install add `-DCMAKE_INSTALL_PREFIX=<path>` to configure command.
+ - To build with SDL 2.0 instead of 1.6 add `-DUSE_SDL2=ON` to configure command.
+ - To disalbe OpenGL add `-DUSE_OPENGL=OFF` to configure command.