Browse Source

Added setup target

Thomas Buck 10 years ago
parent
commit
373b8a7bdf
3 changed files with 8 additions and 1 deletions
  1. 7
    0
      CMakeLists.txt
  2. 1
    1
      README.md
  3. 0
    0
      cmake/setup.sh

+ 7
- 0
CMakeLists.txt View File

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
 # Target for running cppcheck
32
 # Target for running cppcheck
26
 set (CHECK_STD "--std=c++11" "--std=posix")
33
 set (CHECK_STD "--std=c++11" "--std=posix")
27
 set (CHECK_FLAGS "--quiet" "--force")
34
 set (CHECK_FLAGS "--quiet" "--force")

+ 1
- 1
README.md View File

79
 ### Configuration file
79
 ### Configuration file
80
 
80
 
81
 OpenRaider will try to load `~/.OpenRaider/OpenRaider.init` or, if it doesn't exist, `OpenRaider.init` from the current directory.
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
 The configuration file format is very simple:
84
 The configuration file format is very simple:
85
 * Anything following a `#` up to the next `\n` will be ignored.
85
 * Anything following a `#` up to the next `\n` will be ignored.

setup.sh → cmake/setup.sh View File


Loading…
Cancel
Save