summaryrefslogtreecommitdiff
path: root/README.cmake
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-17 14:12:32 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-17 14:12:32 +0200
commit515f868c3ebe5db8654cd33569e7cae1893485b0 (patch)
tree6d7008646902411ac1434c8baa32a845231e7c6b /README.cmake
parentb1e4bc0c40fa68dee15ddd0c501e9d0d3aeb59e0 (diff)
downloadmana-release-updates.tar.gz
mana-release-updates.tar.bz2
mana-release-updates.tar.xz
mana-release-updates.zip
Merged INSTALL with README.md and README.cmakerelease-updates
Diffstat (limited to 'README.cmake')
-rw-r--r--README.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.cmake b/README.cmake
index 8471473f..6a683292 100644
--- a/README.cmake
+++ b/README.cmake
@@ -27,13 +27,19 @@ The syntax for setting variables to control CMakes behaviour is
- Use a custom install prefix (like --prefix on autoconf)?
CMAKE_INSTALL_PREFIX=/path/to/prefix
+
- Create a debug build?
CMAKE_BUILD_TYPE=Debug .
+
- Add additional package search directories?
CMAKE_PREFIX_PATH=/prefix/path
+
- Add additional include search directories?
CMAKE_INCLUDE_PATH=/include/path
+- Compile without legacy OpenGL rendering?
+ WITH_OPENGL=OFF
+
For example, to build mana to install in /opt/mana, with libraries in
/build/mana/lib, and SDL-headers in /build/mana/include/SDL you'd use
the following command:
@@ -86,6 +92,9 @@ $ cmake -DCMAKE_TOOLCHAIN_FILE=/build/toolchain.cmake .
4. Creating an installer binary for Windows
-------------------------------------------
+(NOTE: These instructions are outdated, an NSIS installer can now be produced
+in MSYS2 using cpack, which automates most of the below steps.)
+
Call cmake with the following flags:
- CMAKE_TOOLCHAIN_FILE=/build/toolchain.cmake