From 73ade9074d4a9210da5d011de1454e9638c133e2 Mon Sep 17 00:00:00 2001 From: Boof2015 <75185879+Boof2015@users.noreply.github.com> Date: Tue, 2 Jun 2026 12:57:22 -0400 Subject: [PATCH] cmake error on ubuntu ci --- plugin/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt index 8a6b42f..d83bf3f 100644 --- a/plugin/CMakeLists.txt +++ b/plugin/CMakeLists.txt @@ -55,6 +55,13 @@ if(NOT PRISM_DEV_SERVER) juce_add_binary_data(PrismWebUI SOURCES ${PRISM_WEBUI_FILES}) endif() +if(UNIX AND NOT APPLE) + find_package(PkgConfig REQUIRED) + pkg_check_modules(PRISM_LINUX_WEBVIEW_DEPS REQUIRED IMPORTED_TARGET + webkit2gtk-4.1 + gtk+-x11-3.0) +endif() + # Define one per-scope plugin product from the shared codebase. # SCOPE_DEFINE selects the ScopeEngine at compile time (empty = spectrum default). function(add_prism_scope TARGET PRODUCT PLUGIN_CODE SCOPE_DEFINE) @@ -125,6 +132,10 @@ function(add_prism_scope TARGET PRODUCT PLUGIN_CODE SCOPE_DEFINE) juce::juce_recommended_config_flags juce::juce_recommended_lto_flags juce::juce_recommended_warning_flags) + + if(UNIX AND NOT APPLE) + target_link_libraries(${TARGET} PRIVATE PkgConfig::PRISM_LINUX_WEBVIEW_DEPS) + endif() endfunction() add_prism_scope(PrismSpectrum "Prism Spectrum" Pspc "")