diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-04-17 14:12:32 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-04-17 14:12:32 +0200 |
commit | 515f868c3ebe5db8654cd33569e7cae1893485b0 (patch) | |
tree | 6d7008646902411ac1434c8baa32a845231e7c6b /README.cmake | |
parent | b1e4bc0c40fa68dee15ddd0c501e9d0d3aeb59e0 (diff) | |
download | mana-515f868c3ebe5db8654cd33569e7cae1893485b0.tar.gz mana-515f868c3ebe5db8654cd33569e7cae1893485b0.tar.bz2 mana-515f868c3ebe5db8654cd33569e7cae1893485b0.tar.xz mana-515f868c3ebe5db8654cd33569e7cae1893485b0.zip |
Merged INSTALL with README.md and README.cmakerelease-updates
Diffstat (limited to 'README.cmake')
-rw-r--r-- | README.cmake | 9 |
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 |