summaryrefslogtreecommitdiff
path: root/cmake/build-debug.sh
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-05-12 08:21:30 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-05-12 08:21:30 -0400
commit7a00574163029c0c2b649878c95d5acbd083564a (patch)
treec13cc5736025834df2874ed87ee8598070025ea6 /cmake/build-debug.sh
parentb745315323de9f27538edac9453205ca70e6186e (diff)
Imported Upstream version 1.7.2+dfsg
Diffstat (limited to 'cmake/build-debug.sh')
-rwxr-xr-xcmake/build-debug.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/cmake/build-debug.sh b/cmake/build-debug.sh
new file mode 100755
index 0000000..16c6669
--- /dev/null
+++ b/cmake/build-debug.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+#
+# A sample script showing how to build most of the options available to this system.
+# Invoke it from the top directory of SWORD by calling $ cmake/build-debug.sh
+#
+
+mkdir -p build
+cd build
+# Configure with Python and Perl bindings, examples, tests and a debug build into
+# a shared library
+cmake -DSWORD_BINDINGS="Python Perl" \
+ -DSWORD_BUILD_EXAMPLES="Yes" \
+ -DSWORD_BUILD_TESTS="Yes" \
+ -DLIBSWORD_LIBRARY_TYPE="Shared" \
+ -DCMAKE_BUILD_TYPE="Debug" .. \
+ -DCMAKE_INSTALL_PREFIX="~/"
+make -j10
+cd ..
+
+echo "Now the library has been built, along with the Perl and Python bindings. \
+Both will be installed to the the user's home directory if you are building \
+under Linux or a similar Unix-like environment if you execute the command \
+'make install' from the build directory with privileges to write into the \
+~/ directory."