summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-11-01 15:12:22 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-11-01 15:12:22 +0000
commitfa035c2fd70945a0b12143ce9b81284d8d24d13b (patch)
tree13e58b07970e28107b096572fd529b919be8ac38 /CMakeLists.txt
parente8f94fe7ca5e7e7838eaa84f1792b4b42b4bada3 (diff)
downloadmana-fa035c2fd70945a0b12143ce9b81284d8d24d13b.tar.gz
mana-fa035c2fd70945a0b12143ce9b81284d8d24d13b.tar.bz2
mana-fa035c2fd70945a0b12143ce9b81284d8d24d13b.tar.xz
mana-fa035c2fd70945a0b12143ce9b81284d8d24d13b.zip
Added CMake support
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..0d123870
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,21 @@
+PROJECT(TMW)
+
+SET(VERSION 0.1.0)
+
+# 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)