summaryrefslogtreecommitdiff
blob: 48205033d62186f79296fdbc06a31df9797c2f15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
commit 04fff802ee72c08d2e1730c6c5506fc2e708d5fe
Author: hasufell <hasufell@gentoo.org>
Date:   Wed Jul 31 03:34:29 2013 +0200

    BUILD: add unix install rules

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b77096a..f49a1e8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,8 @@
 project(Odamex)
 cmake_minimum_required(VERSION 2.8)
 
+# cmake modules
+include( GNUInstallDirs )
 set(PROJECT_VERSION 0.6.4)
 set(PROJECT_COPYRIGHT "2006-2013")
 
@@ -64,3 +66,8 @@ add_subdirectory(odalaunch)
 if(NOT NO_AG-ODALAUNCH_TARGET)
   add_subdirectory(ag-odalaunch)
 endif()
+
+# global install rules
+if(UNIX)
+	install(FILES odamex.wad DESTINATION ${CMAKE_INSTALL_DATADIR})
+endif()
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
index 5dd5d43..1fde0ff 100644
--- a/client/CMakeLists.txt
+++ b/client/CMakeLists.txt
@@ -168,5 +168,8 @@ if(SDL_FOUND AND SDLMIXER_FOUND)
         " )
     endif()
 
+    # UNIX install rules
+  elseif(UNIX)
+    install( TARGETS odamex DESTINATION ${CMAKE_INSTALL_BINDIR} )
   endif()
 endif()
diff --git a/master/CMakeLists.txt b/master/CMakeLists.txt
index c1c3853..3e94b34 100644
--- a/master/CMakeLists.txt
+++ b/master/CMakeLists.txt
@@ -12,3 +12,8 @@ if(WIN32)
 elseif(SOLARIS)
   target_link_libraries(odamast socket nsl)
 endif()
+
+# install rules
+if(UNIX)
+	install( TARGETS odamast DESTINATION ${CMAKE_INSTALL_BINDIR} )
+endif()
diff --git a/odalaunch/CMakeLists.txt b/odalaunch/CMakeLists.txt
index ff9b6e3..d2d2171 100644
--- a/odalaunch/CMakeLists.txt
+++ b/odalaunch/CMakeLists.txt
@@ -61,3 +61,8 @@ if(wxWidgets_FOUND)
     )
   endif()
 endif()
+
+# install rules
+if(UNIX)
+	install( TARGETS odalaunch DESTINATION ${CMAKE_INSTALL_BINDIR} )
+endif()
diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt
index 2284a8a..a079434 100644
--- a/server/CMakeLists.txt
+++ b/server/CMakeLists.txt
@@ -61,3 +61,7 @@ if(UNIX AND NOT APPLE)
   target_link_libraries(odasrv rt)
 endif()
 
+# install rules
+if(UNIX)
+	install( TARGETS odasrv DESTINATION ${CMAKE_INSTALL_BINDIR} )
+endif()