summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-10-26 19:34:59 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-10-26 19:34:59 +0000
commit0ccfbebaf87b065ecffdc15bf6e74321eb713b81 (patch)
tree4587c27ccebcb107a2e3f928b9d069a4c1e06563 /CMakeLists.txt
parentf87feabadb652f13d607cfccfec602cadf31d29d (diff)
downloadmana-0ccfbebaf87b065ecffdc15bf6e74321eb713b81.tar.gz
mana-0ccfbebaf87b065ecffdc15bf6e74321eb713b81.tar.bz2
mana-0ccfbebaf87b065ecffdc15bf6e74321eb713b81.tar.xz
mana-0ccfbebaf87b065ecffdc15bf6e74321eb713b81.zip
Merged CMake branch
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 00000000..c00bdff6
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,21 @@
+PROJECT(TMW)
+
+SET(VERSION 0.0.22)
+
+# where to look for cmake modules
+SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules)
+
+OPTION(WITH_OPENGL "Enable OpenGL support" ON)
+
+IF (WIN32)
+ SET(PKG_DATADIR ".")
+ SET(PKG_BINDIR ".")
+ELSE (WIN32)
+ SET(PKG_DATADIR ${CMAKE_INSTALL_PREFIX}/share/tmw)
+ SET(PKG_BINDIR ${CMAKE_INSTALL_PREFIX}/bin)
+ENDIF (WIN32)
+
+ADD_SUBDIRECTORY(data)
+ADD_SUBDIRECTORY(src)
+
+INSTALL(FILES tmw.desktop DESTINATION share/applications)