From 3ad822e4d2b4232c72d7b39185bbe660d40c0b45 Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Mon, 18 Jul 2022 09:09:30 -0700 Subject: Add CMake build instructions --- INSTALL | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 +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=` 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. -- cgit v1.2.3-70-g09d2