Skip to content

Commit

Permalink
Flexibility updates for Linux setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulat committed Dec 30, 2023
1 parent a222c7d commit cac240d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
16 changes: 13 additions & 3 deletions setup-debug.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/bin/bash
./tools/setup-common.sh
mkdir -p build-debug
cd build-debug
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CONFIGURATION_TYPES=Debug -DCMAKE_PREFIX_PATH=/opt/Qt/6.6.1/gcc_64 ..

build_dir=${1:-build-debug}
build_type=Debug
qt_version=6.6.1
script_dir="$(dirname "$(readlink -f "$0")")"

mkdir -p ${build_dir}
cmake -B ${build_dir} -S . \
-DCMAKE_BUILD_TYPE=${build_type} \
-DCMAKE_CONFIGURATION_TYPES=${build_type} \
-DCMAKE_INSTALL_PREFIX=${build_dir}/${build_type}/supercell-wx \
-DCMAKE_PREFIX_PATH=/opt/Qt/${qt_version}/gcc_64 \
-G Ninja
16 changes: 13 additions & 3 deletions setup-release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/bin/bash
./tools/setup-common.sh
mkdir -p build-release
cd build-release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_PREFIX_PATH=/opt/Qt/6.6.1/gcc_64 ..

build_dir=${1:-build-release}
build_type=Release
qt_version=6.6.1
script_dir="$(dirname "$(readlink -f "$0")")"

mkdir -p ${build_dir}
cmake -B ${build_dir} -S . \
-DCMAKE_BUILD_TYPE=${build_type} \
-DCMAKE_CONFIGURATION_TYPES=${build_type} \
-DCMAKE_INSTALL_PREFIX=${build_dir}/${build_type}/supercell-wx \
-DCMAKE_PREFIX_PATH=/opt/Qt/${qt_version}/gcc_64 \
-G Ninja
6 changes: 3 additions & 3 deletions tools/setup-common.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
pip install "conan<2.0"
pip install geopandas
pip install GitPython
pip install --upgrade --user --break-system-packages "conan<2.0"
pip install --upgrade --user --break-system-packages geopandas
pip install --upgrade --user --break-system-packages GitPython
conan profile new default --detect

0 comments on commit cac240d

Please sign in to comment.