From 7423b4c6fac58e19557dcc2faa0232ffebc05159 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sat, 21 Apr 2012 18:37:48 +0000 Subject: [PATCH] - added script to build eclipse project files for importing into eclipse so we can compile and debug from within eclipse --- build-eclipse-project.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 build-eclipse-project.sh diff --git a/build-eclipse-project.sh b/build-eclipse-project.sh new file mode 100644 index 000000000..7c5ae9763 --- /dev/null +++ b/build-eclipse-project.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Use this script to build MegaGlest Eclipse project files from CMake +# ---------------------------------------------------------------------------- +# Written by Mark Vejvoda +# Copyright (c) 2011 Mark Vejvoda under GNU GPL v3.0+ + +mkdir -p eclipse +cd eclipse + +if [ -f 'CMakeCache.txt' ]; then rm -f 'CMakeCache.txt'; fi + +# This is for regular developers and used by our installer +cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_INSTALL_PREFIX= -DWANT_STATIC_LIBS=ON .. +if [ $? -ne 0 ]; then + echo 'ERROR: CMAKE failed.' >&2; exit 1 +fi + +cd .. +echo '' +echo 'Eclipse Project files aee created in the folder 'eclipse'