summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/2geom/tests/dependent-project/build-and-run.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
commitcca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch)
tree146f39ded1c938019e1ed42d30923c2ac9e86789 /src/3rdparty/2geom/tests/dependent-project/build-and-run.sh
parentInitial commit. (diff)
downloadinkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.tar.xz
inkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.zip
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/3rdparty/2geom/tests/dependent-project/build-and-run.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/3rdparty/2geom/tests/dependent-project/build-and-run.sh b/src/3rdparty/2geom/tests/dependent-project/build-and-run.sh
new file mode 100644
index 0000000..b7bb2db
--- /dev/null
+++ b/src/3rdparty/2geom/tests/dependent-project/build-and-run.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+set -x
+mkdir -p ../../opt2
+mkdir -p build-as-subproject
+(
+ cd build-as-subproject;
+ cmake .. -D2GEOM_AS_SUBPROJECT=ON \
+ -DCMAKE_INSTALL_PREFIX=../../../opt2
+ make main -j 2
+ ./main
+ make install
+)
+
+mkdir -p build-with-find-package
+(
+ cd build-with-find-package;
+ cmake .. -D2GEOM_AS_SUBPROJECT=OFF \
+ -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address" \
+ -DCMAKE_INSTALL_PREFIX=../../../opt2 \
+ -D2Geom_DIR="$PWD/../../../opt/lib/cmake/2Geom"
+ make main -j 2
+ ./main
+ make install
+)