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,9 +16,6 @@ configure_file (
16 16
 )
17 17
 include_directories ("${PROJECT_BINARY_DIR}")
18 18
 
19
-# Default to Debug build
20
-set (CMAKE_BUILD_TYPE "Debug")
21
-
22 19
 # Add subdirectories
23 20
 add_subdirectory (src)
24 21
 add_subdirectory (test)

+ 1
- 1
README.md View File

@@ -72,7 +72,7 @@ You can run a static analysis with cppcheck using `make check`, `make checkFull`
72 72
 
73 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 77
 ## Usage
78 78
 

+ 9
- 0
src/CMakeLists.txt View File

@@ -84,6 +84,15 @@ endif (APPLE)
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 96
 # Debug build warnings
88 97
 set (WARNINGS "${WARNINGS} -Weverything -Wno-padded -Wno-packed")
89 98
 set (WARNINGS "${WARNINGS} -Wno-global-constructors -Wno-exit-time-destructors")

Loading…
Cancel
Save