fix: include cppbridge library in package build output

Configure CMake to output `libcppbridgeplugin.so` to the package directory and set `$ORIGIN` runtime path so that it is properly bundled and resolved when distributed as a .plasmoid zip archive.
This commit is contained in:
ruinivist
2026-05-30 20:57:01 +00:00
parent c44e9f57d2
commit 09a0252386
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -36,4 +36,13 @@ target_link_libraries(cppbridgeplugin PRIVATE
set_target_properties(cppbridgeplugin PROPERTIES
CXX_STANDARD 20
CXX_STANDARD_REQUIRED ON
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/../package/contents/ui/cppbridge"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/../package/contents/ui/cppbridge"
BUILD_WITH_INSTALL_RPATH TRUE
INSTALL_RPATH "$ORIGIN"
)
set_target_properties(cppbridgepluginplugin PROPERTIES
BUILD_WITH_INSTALL_RPATH TRUE
INSTALL_RPATH "$ORIGIN"
)