Bläddra i källkod

Added setup target

Thomas Buck 10 år sedan
förälder
incheckning
373b8a7bdf
3 ändrade filer med 8 tillägg och 1 borttagningar
  1. 7
    0
      CMakeLists.txt
  2. 1
    1
      README.md
  3. 0
    0
      cmake/setup.sh

+ 7
- 0
CMakeLists.txt Visa fil

@@ -22,6 +22,13 @@ add_subdirectory (test)
22 22
 
23 23
 #################################################################
24 24
 
25
+# Target for running the setup
26
+add_custom_target (setup "${PROJECT_SOURCE_DIR}/cmake/setup.sh"
27
+    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
28
+)
29
+
30
+#################################################################
31
+
25 32
 # Target for running cppcheck
26 33
 set (CHECK_STD "--std=c++11" "--std=posix")
27 34
 set (CHECK_FLAGS "--quiet" "--force")

+ 1
- 1
README.md Visa fil

@@ -79,7 +79,7 @@ A Doxygen API documentation can be created with `make doc`.
79 79
 ### Configuration file
80 80
 
81 81
 OpenRaider will try to load `~/.OpenRaider/OpenRaider.init` or, if it doesn't exist, `OpenRaider.init` from the current directory.
82
-Running `setup.sh` will create a minimal configuration in your home directory.
82
+Running `make setup` or the `cmake/setup.sh` script will create a minimal configuration in your home directory.
83 83
 
84 84
 The configuration file format is very simple:
85 85
 * Anything following a `#` up to the next `\n` will be ignored.

setup.sh → cmake/setup.sh Visa fil


Laddar…
Avbryt
Spara