Also install ftxui shared libraries from FetchContent

pipedal_kconfig links against libftxui-component.so, libftxui-dom.so,
and libftxui-screen.so built via FetchContent. Without explicit install
rules, these are missing after installation on distros that don't
provide ftxui as a system package (e.g. Arch), causing
'cannot open shared object file' at runtime.

Also update the comment to reflect all three dependency groups:
SQLiteCpp, libzip, and ftxui.
This commit is contained in:
FoolHen
2026-06-10 16:32:23 +02:00
parent e09ccc13f5
commit df949ca20c
+9 -1
View File
@@ -79,7 +79,8 @@ if(NOT PIPEDAL_DISABLE_COPYRIGHT_BUILD)
DESTINATION /etc/pipedal/react/var/)
endif()
# Install SQLiteCpp and libzip shared libraries (their own install targets are disabled)
# Install shared libraries from submodules and FetchContent dependencies
# whose own install targets are disabled (SQLITECPP_INSTALL=OFF, LIBZIP_DO_INSTALL=OFF)
install (
FILES
${PROJECT_BINARY_DIR}/modules/SQLiteCpp/libSQLiteCpp.so.0
@@ -91,6 +92,13 @@ install (
${PROJECT_BINARY_DIR}/modules/libzip/lib/libzip.so.5
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
)
install (
FILES
${PROJECT_BINARY_DIR}/_deps/ftxui-build/libftxui-component.so.5.0.0
${PROJECT_BINARY_DIR}/_deps/ftxui-build/libftxui-dom.so.5.0.0
${PROJECT_BINARY_DIR}/_deps/ftxui-build/libftxui-screen.so.5.0.0
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
)
install (
DIRECTORY ${PROJECT_SOURCE_DIR}/src/templates