Browse Source

Added install target for non-apple os

Thomas Buck 10 years ago
parent
commit
45be7bcd1f
3 changed files with 10 additions and 4 deletions
  1. 0
    3
      CMakeLists.txt
  2. 1
    1
      README.md
  3. 9
    0
      src/CMakeLists.txt

+ 0
- 3
CMakeLists.txt View File

16
 )
16
 )
17
 include_directories ("${PROJECT_BINARY_DIR}")
17
 include_directories ("${PROJECT_BINARY_DIR}")
18
 
18
 
19
-# Default to Debug build
20
-set (CMAKE_BUILD_TYPE "Debug")
21
-
22
 # Add subdirectories
19
 # Add subdirectories
23
 add_subdirectory (src)
20
 add_subdirectory (src)
24
 add_subdirectory (test)
21
 add_subdirectory (test)

+ 1
- 1
README.md View File

72
 
72
 
73
 A Doxygen API documentation can be created with `make doc`.
73
 A Doxygen API documentation can be created with `make doc`.
74
 
74
 
75
-`make clean` should remove all intermediary files.
75
+`make clean` should remove all intermediary files. `make run` will run the binary.
76
 
76
 
77
 ## Usage
77
 ## Usage
78
 
78
 

+ 9
- 0
src/CMakeLists.txt View File

84
 
84
 
85
 #################################################################
85
 #################################################################
86
 
86
 
87
+if (NOT APPLE)
88
+    # Install binary
89
+    install (TARGET OpenRaider
90
+        RUNTIME DESTINATION bin
91
+    )
92
+endif (NOT APPLE)
93
+
94
+#################################################################
95
+
87
 # Debug build warnings
96
 # Debug build warnings
88
 set (WARNINGS "${WARNINGS} -Weverything -Wno-padded -Wno-packed")
97
 set (WARNINGS "${WARNINGS} -Weverything -Wno-padded -Wno-packed")
89
 set (WARNINGS "${WARNINGS} -Wno-global-constructors -Wno-exit-time-destructors")
98
 set (WARNINGS "${WARNINGS} -Wno-global-constructors -Wno-exit-time-destructors")

Loading…
Cancel
Save