From 4e2ae88c02730ac600cd7f94651ab2b53f6843a0 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Tue, 4 Nov 2014 15:17:17 +0000
Subject: [PATCH] Task #6526: Added howto for using the qtcreator with the
 Scheduler

---
 .gitattributes                     |  1 +
 SAS/Scheduler/src/README-qtcreator | 43 ++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)
 create mode 100644 SAS/Scheduler/src/README-qtcreator

diff --git a/.gitattributes b/.gitattributes
index 080dc82a5ed..2d86215c077 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -4414,6 +4414,7 @@ SAS/OTDB/test/tBrokenHardware.cc -text
 SAS/OTDB/test/tMetadata.cc -text
 SAS/OTDB/test/tQueryPIC.cc -text
 SAS/Scheduler/src/.default_settings.set -text
+SAS/Scheduler/src/README-qtcreator -text
 SAS/Scheduler/src/conflictdialog.ui -text
 SAS/Scheduler/src/dataslotdialog.ui -text
 SAS/Scheduler/src/digitalbeamdialog.ui -text
diff --git a/SAS/Scheduler/src/README-qtcreator b/SAS/Scheduler/src/README-qtcreator
new file mode 100644
index 00000000000..d0c434e8bd3
--- /dev/null
+++ b/SAS/Scheduler/src/README-qtcreator
@@ -0,0 +1,43 @@
+The qtcreator GUI design tool can be used to edit, run, and debug the Scheduler. To do so, follow these steps:
+
+-----------------
+Build in qtcreator
+-----------------
+
+0) Go to the SAS/Scheduler/src source directory
+
+1) Run `qtcreator'
+
+2) Open the menu:
+	File -> Open File or Project...
+
+3) Select
+	'CMakeLists.txt', 
+   click
+	'Open'.
+
+4) Set the build directory to (remove the full path)
+	'gnu_debug' or 'gnu_opt',
+   click
+	'Next >'
+
+5) CMake arguments:
+	../../../.. -DBUILD_PACKAGES=Scheduler,
+6) Click 'Run CMake', and scan the output for errors
+7) Click 'Finish'
+
+Note that the build will be running in the src/gnu_{debug,opt}/SAS/Scheduler/src directory.
+
+-----------------
+First run
+-----------------
+
+The Scheduler needs to have the .default_settings.set available in the running directory.
+To make it available, simply symlink it from the source directory. In SAS/Scheduler/src, run:
+
+   ln -sf `pwd`/.default_settings.set gnu_*/SAS/Scheduler/src/
+
+(Note that gnu_* will match either gnu_debug or gnu_opt).
+
+Enjoy!
+
-- 
GitLab