shmup / wander

Fantasy story tool
GNU General Public License v3.0
122 stars 19 forks source link

Support build & install via CMake #6

Open FaultyRAM opened 9 years ago

FaultyRAM commented 9 years ago

Exactly what it says on the tin. This adds a CMakeLists.txt that can be used to build and install Wander and friends. The main binary is installed to ${CMAKE_INSTALL_PREFIX}/bin, the documentation to ${CMAKE_INSTALL_PREFIX}/share/doc/wander, and the worlds to ${CMAKE_INSTALL_PREFIX}/share/wander. Each world has its own subdirectory once installed, so the command line looks even worse now (wander /../../../../usr/local/share/wander/library/library, blargh), but that should be an easy fix.

Note that the project version is just a placeholder; each code file has a version number in it, but there doesn't seem to be a single version number for Wander as a whole.