From 515f868c3ebe5db8654cd33569e7cae1893485b0 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 17 Apr 2024 14:12:32 +0200 Subject: Merged INSTALL with README.md and README.cmake --- README.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'README.cmake') 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 -- cgit v1.2.3-70-g09d2