consolidate linux install script

This commit is contained in:
2026-02-08 14:30:03 -06:00
parent e2f5cb13e0
commit 0f17ab09c4
4 changed files with 22 additions and 1 deletions

View File

@@ -107,4 +107,5 @@ target_link_libraries(metabolus
RtMidi::rtmidi
yaml-cpp
Qt6::Widgets
atomic
)

View File

@@ -26,7 +26,6 @@ if (-not (Test-Path -Path $BUILD_DIR)) {
}
# detect dependencies
$libraries = @("rtaudio", "rtmidi", "yaml-cpp")
$dependencies_found = 0
foreach ($lib in $libraries) {
@@ -38,6 +37,7 @@ foreach ($lib in $libraries) {
}
}
# run the install script if dependencies not found
if (-not ($dependencies_found -eq $libraries.Count)) {
& "scripts\install_dependencies.ps1"
} else {

View File

@@ -8,6 +8,26 @@ RTAUDIO_ROOT=${LIB_ROOT}/rtaudio
RTMIDI_ROOT=${LIB_ROOT}/rtmidi
YAMLCPP_ROOT=${LIB_ROOT}/yaml-cpp
# detect dependencies
libraries=("rtaudio" "rtmidi" "yaml-cpp")
dependencies_found=0
for lib in "${libraries[@]}"; do
if [[ -e "./build/lib/$lib" ]]; then
echo "found $lib"
((dependencies_found++))
else
echo "did not find $lib"
fi
done
# run the install script if dependencies not found
if [[ "$dependencies_found" -ne "${#libraries[@]}" ]]; then
./scripts/install_dependencies.sh
else
echo "All dependencies detected, skipping dependency install step..."
fi
cmake -S . -B ${BUILD_DIR} -G Ninja \
-DRtAudio_DIR="${RTAUDIO_ROOT}/share/rtaudio" \
-DRtMidi_DIR="${RTMIDI_ROOT}/share/rtmidi" \

0
tests/.gitkeep Normal file
View File