From 69782cf7136ff844681feb64a91620cb98ee87fc Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Fri, 20 Sep 2024 15:34:20 -0400 Subject: [PATCH] chat(build): fix broken installer on macOS (#2973) Signed-off-by: Jared Van Bortel --- gpt4all-backend/CMakeLists.txt | 4 + gpt4all-chat/CHANGELOG.md | 1 + gpt4all-chat/CMakeLists.txt | 82 +++++++++++++++++-- gpt4all-chat/{src => }/main.qml | 0 .../{src => }/qml/AddCollectionView.qml | 0 gpt4all-chat/{src => }/qml/AddModelView.qml | 0 .../{src => }/qml/ApplicationSettings.qml | 0 gpt4all-chat/{src => }/qml/ChatDrawer.qml | 0 gpt4all-chat/{src => }/qml/ChatView.qml | 0 .../{src => }/qml/CollectionsDrawer.qml | 0 gpt4all-chat/{src => }/qml/HomeView.qml | 0 .../{src => }/qml/LocalDocsSettings.qml | 0 gpt4all-chat/{src => }/qml/LocalDocsView.qml | 0 gpt4all-chat/{src => }/qml/ModelSettings.qml | 0 gpt4all-chat/{src => }/qml/ModelsView.qml | 0 .../{src => }/qml/MyBusyIndicator.qml | 0 gpt4all-chat/{src => }/qml/MyButton.qml | 0 gpt4all-chat/{src => }/qml/MyCheckBox.qml | 0 gpt4all-chat/{src => }/qml/MyComboBox.qml | 0 gpt4all-chat/{src => }/qml/MyDialog.qml | 0 .../{src => }/qml/MyDirectoryField.qml | 0 gpt4all-chat/{src => }/qml/MyFancyLink.qml | 0 gpt4all-chat/{src => }/qml/MyMenu.qml | 0 gpt4all-chat/{src => }/qml/MyMenuItem.qml | 0 gpt4all-chat/{src => }/qml/MyMiniButton.qml | 0 .../{src => }/qml/MySettingsButton.qml | 0 .../qml/MySettingsDestructiveButton.qml | 0 .../{src => }/qml/MySettingsLabel.qml | 0 .../{src => }/qml/MySettingsStack.qml | 0 gpt4all-chat/{src => }/qml/MySettingsTab.qml | 0 gpt4all-chat/{src => }/qml/MySlug.qml | 0 gpt4all-chat/{src => }/qml/MyTextArea.qml | 0 gpt4all-chat/{src => }/qml/MyTextButton.qml | 0 gpt4all-chat/{src => }/qml/MyTextField.qml | 0 gpt4all-chat/{src => }/qml/MyToolButton.qml | 0 .../{src => }/qml/MyWelcomeButton.qml | 0 gpt4all-chat/{src => }/qml/NetworkDialog.qml | 0 .../{src => }/qml/NewVersionDialog.qml | 0 gpt4all-chat/{src => }/qml/PopupDialog.qml | 0 gpt4all-chat/{src => }/qml/SettingsView.qml | 0 gpt4all-chat/{src => }/qml/StartupDialog.qml | 0 .../{src => }/qml/SwitchModelDialog.qml | 0 gpt4all-chat/{src => }/qml/Theme.qml | 0 .../{src => }/qml/ThumbsDownDialog.qml | 0 gpt4all-chat/{src => }/qml/Toast.qml | 0 gpt4all-chat/{src => }/qml/ToastManager.qml | 0 gpt4all-chat/src/CMakeLists.txt | 72 ---------------- 47 files changed, 81 insertions(+), 78 deletions(-) rename gpt4all-chat/{src => }/main.qml (100%) rename gpt4all-chat/{src => }/qml/AddCollectionView.qml (100%) rename gpt4all-chat/{src => }/qml/AddModelView.qml (100%) rename gpt4all-chat/{src => }/qml/ApplicationSettings.qml (100%) rename gpt4all-chat/{src => }/qml/ChatDrawer.qml (100%) rename gpt4all-chat/{src => }/qml/ChatView.qml (100%) rename gpt4all-chat/{src => }/qml/CollectionsDrawer.qml (100%) rename gpt4all-chat/{src => }/qml/HomeView.qml (100%) rename gpt4all-chat/{src => }/qml/LocalDocsSettings.qml (100%) rename gpt4all-chat/{src => }/qml/LocalDocsView.qml (100%) rename gpt4all-chat/{src => }/qml/ModelSettings.qml (100%) rename gpt4all-chat/{src => }/qml/ModelsView.qml (100%) rename gpt4all-chat/{src => }/qml/MyBusyIndicator.qml (100%) rename gpt4all-chat/{src => }/qml/MyButton.qml (100%) rename gpt4all-chat/{src => }/qml/MyCheckBox.qml (100%) rename gpt4all-chat/{src => }/qml/MyComboBox.qml (100%) rename gpt4all-chat/{src => }/qml/MyDialog.qml (100%) rename gpt4all-chat/{src => }/qml/MyDirectoryField.qml (100%) rename gpt4all-chat/{src => }/qml/MyFancyLink.qml (100%) rename gpt4all-chat/{src => }/qml/MyMenu.qml (100%) rename gpt4all-chat/{src => }/qml/MyMenuItem.qml (100%) rename gpt4all-chat/{src => }/qml/MyMiniButton.qml (100%) rename gpt4all-chat/{src => }/qml/MySettingsButton.qml (100%) rename gpt4all-chat/{src => }/qml/MySettingsDestructiveButton.qml (100%) rename gpt4all-chat/{src => }/qml/MySettingsLabel.qml (100%) rename gpt4all-chat/{src => }/qml/MySettingsStack.qml (100%) rename gpt4all-chat/{src => }/qml/MySettingsTab.qml (100%) rename gpt4all-chat/{src => }/qml/MySlug.qml (100%) rename gpt4all-chat/{src => }/qml/MyTextArea.qml (100%) rename gpt4all-chat/{src => }/qml/MyTextButton.qml (100%) rename gpt4all-chat/{src => }/qml/MyTextField.qml (100%) rename gpt4all-chat/{src => }/qml/MyToolButton.qml (100%) rename gpt4all-chat/{src => }/qml/MyWelcomeButton.qml (100%) rename gpt4all-chat/{src => }/qml/NetworkDialog.qml (100%) rename gpt4all-chat/{src => }/qml/NewVersionDialog.qml (100%) rename gpt4all-chat/{src => }/qml/PopupDialog.qml (100%) rename gpt4all-chat/{src => }/qml/SettingsView.qml (100%) rename gpt4all-chat/{src => }/qml/StartupDialog.qml (100%) rename gpt4all-chat/{src => }/qml/SwitchModelDialog.qml (100%) rename gpt4all-chat/{src => }/qml/Theme.qml (100%) rename gpt4all-chat/{src => }/qml/ThumbsDownDialog.qml (100%) rename gpt4all-chat/{src => }/qml/Toast.qml (100%) rename gpt4all-chat/{src => }/qml/ToastManager.qml (100%) delete mode 100644 gpt4all-chat/src/CMakeLists.txt diff --git a/gpt4all-backend/CMakeLists.txt b/gpt4all-backend/CMakeLists.txt index fb5937aa..4605b139 100644 --- a/gpt4all-backend/CMakeLists.txt +++ b/gpt4all-backend/CMakeLists.txt @@ -128,6 +128,10 @@ foreach(BUILD_VARIANT IN LISTS BUILD_VARIANTS) # Include GGML include_ggml(-mainline-${BUILD_VARIANT}) + if (BUILD_VARIANT MATCHES metal) + set(GGML_METALLIB "${GGML_METALLIB}" PARENT_SCOPE) + endif() + # Function for preparing individual implementations function(prepare_target TARGET_NAME BASE_LIB) set(TARGET_NAME ${TARGET_NAME}-${BUILD_VARIANT}) diff --git a/gpt4all-chat/CHANGELOG.md b/gpt4all-chat/CHANGELOG.md index 27c1d497..3333f21d 100644 --- a/gpt4all-chat/CHANGELOG.md +++ b/gpt4all-chat/CHANGELOG.md @@ -31,6 +31,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). - Significantly improve API server request parsing and response correctness ([#2929](https://github.com/nomic-ai/gpt4all/pull/2929)) - Remove unnecessary dependency on Qt WaylandCompositor module ([#2949](https://github.com/nomic-ai/gpt4all/pull/2949)) - Update translations ([#2970](https://github.com/nomic-ai/gpt4all/pull/2970)) +- Fix macOS installer and remove extra installed copy of Nomic Embed ([#2973](https://github.com/nomic-ai/gpt4all/pull/2973)) ## [3.2.1] - 2024-08-13 diff --git a/gpt4all-chat/CMakeLists.txt b/gpt4all-chat/CMakeLists.txt index 900307ae..4ee6a1c9 100644 --- a/gpt4all-chat/CMakeLists.txt +++ b/gpt4all-chat/CMakeLists.txt @@ -114,8 +114,6 @@ elseif (APPLE) # And the following tells CMake where to find and install the file itself. set(APP_ICON_RESOURCE "${CMAKE_CURRENT_SOURCE_DIR}/resources/gpt4all.icns") - set_source_files_properties(${APP_ICON_RESOURCE} PROPERTIES - MACOSX_PACKAGE_LOCATION "Resources") list(APPEND CHAT_EXE_RESOURCES "${APP_ICON_RESOURCE}") endif() @@ -137,11 +135,84 @@ endif() set(QAPPLICATION_CLASS QGuiApplication) add_subdirectory(deps/SingleApplication) -add_subdirectory(src) -target_sources(chat PRIVATE ${APP_ICON_RESOURCE} ${CHAT_EXE_RESOURCES}) +if (DEFINED GGML_METALLIB) + set_source_files_properties("${GGML_METALLIB}" PROPERTIES GENERATED ON) +endif() +if (APPLE) + set_source_files_properties(${CHAT_EXE_RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) +endif() -qt_target_qml_sources(chat +qt_add_executable(chat + src/main.cpp + src/chat.cpp src/chat.h + src/chatapi.cpp src/chatapi.h + src/chatlistmodel.cpp src/chatlistmodel.h + src/chatllm.cpp src/chatllm.h + src/chatmodel.h + src/chatviewtextprocessor.cpp src/chatviewtextprocessor.h + src/database.cpp src/database.h + src/download.cpp src/download.h + src/embllm.cpp src/embllm.h + src/llm.cpp src/llm.h + src/localdocs.cpp src/localdocs.h + src/localdocsmodel.cpp src/localdocsmodel.h + src/logger.cpp src/logger.h + src/modellist.cpp src/modellist.h + src/mysettings.cpp src/mysettings.h + src/network.cpp src/network.h + src/server.cpp src/server.h + ${CHAT_EXE_RESOURCES} +) + +qt_add_qml_module(chat + URI gpt4all + VERSION 1.0 + NO_CACHEGEN + QML_FILES + main.qml + qml/AddCollectionView.qml + qml/AddModelView.qml + qml/ApplicationSettings.qml + qml/ChatDrawer.qml + qml/ChatView.qml + qml/CollectionsDrawer.qml + qml/HomeView.qml + qml/LocalDocsSettings.qml + qml/LocalDocsView.qml + qml/ModelSettings.qml + qml/ModelsView.qml + qml/NetworkDialog.qml + qml/NewVersionDialog.qml + qml/PopupDialog.qml + qml/SettingsView.qml + qml/StartupDialog.qml + qml/SwitchModelDialog.qml + qml/Theme.qml + qml/ThumbsDownDialog.qml + qml/Toast.qml + qml/ToastManager.qml + qml/MyBusyIndicator.qml + qml/MyButton.qml + qml/MyCheckBox.qml + qml/MyComboBox.qml + qml/MyDialog.qml + qml/MyDirectoryField.qml + qml/MyFancyLink.qml + qml/MyMenu.qml + qml/MyMenuItem.qml + qml/MyMiniButton.qml + qml/MySettingsButton.qml + qml/MySettingsDestructiveButton.qml + qml/MySettingsLabel.qml + qml/MySettingsStack.qml + qml/MySettingsTab.qml + qml/MySlug.qml + qml/MyTextArea.qml + qml/MyTextButton.qml + qml/MyTextField.qml + qml/MyToolButton.qml + qml/MyWelcomeButton.qml RESOURCES icons/antenna_1.svg icons/antenna_2.svg @@ -223,7 +294,6 @@ if (APPLE) MACOSX_BUNDLE_GUI_IDENTIFIER gpt4all MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} - RESOURCE "${CHAT_EXE_RESOURCES}" OUTPUT_NAME gpt4all ) add_dependencies(chat ggml-metal) diff --git a/gpt4all-chat/src/main.qml b/gpt4all-chat/main.qml similarity index 100% rename from gpt4all-chat/src/main.qml rename to gpt4all-chat/main.qml diff --git a/gpt4all-chat/src/qml/AddCollectionView.qml b/gpt4all-chat/qml/AddCollectionView.qml similarity index 100% rename from gpt4all-chat/src/qml/AddCollectionView.qml rename to gpt4all-chat/qml/AddCollectionView.qml diff --git a/gpt4all-chat/src/qml/AddModelView.qml b/gpt4all-chat/qml/AddModelView.qml similarity index 100% rename from gpt4all-chat/src/qml/AddModelView.qml rename to gpt4all-chat/qml/AddModelView.qml diff --git a/gpt4all-chat/src/qml/ApplicationSettings.qml b/gpt4all-chat/qml/ApplicationSettings.qml similarity index 100% rename from gpt4all-chat/src/qml/ApplicationSettings.qml rename to gpt4all-chat/qml/ApplicationSettings.qml diff --git a/gpt4all-chat/src/qml/ChatDrawer.qml b/gpt4all-chat/qml/ChatDrawer.qml similarity index 100% rename from gpt4all-chat/src/qml/ChatDrawer.qml rename to gpt4all-chat/qml/ChatDrawer.qml diff --git a/gpt4all-chat/src/qml/ChatView.qml b/gpt4all-chat/qml/ChatView.qml similarity index 100% rename from gpt4all-chat/src/qml/ChatView.qml rename to gpt4all-chat/qml/ChatView.qml diff --git a/gpt4all-chat/src/qml/CollectionsDrawer.qml b/gpt4all-chat/qml/CollectionsDrawer.qml similarity index 100% rename from gpt4all-chat/src/qml/CollectionsDrawer.qml rename to gpt4all-chat/qml/CollectionsDrawer.qml diff --git a/gpt4all-chat/src/qml/HomeView.qml b/gpt4all-chat/qml/HomeView.qml similarity index 100% rename from gpt4all-chat/src/qml/HomeView.qml rename to gpt4all-chat/qml/HomeView.qml diff --git a/gpt4all-chat/src/qml/LocalDocsSettings.qml b/gpt4all-chat/qml/LocalDocsSettings.qml similarity index 100% rename from gpt4all-chat/src/qml/LocalDocsSettings.qml rename to gpt4all-chat/qml/LocalDocsSettings.qml diff --git a/gpt4all-chat/src/qml/LocalDocsView.qml b/gpt4all-chat/qml/LocalDocsView.qml similarity index 100% rename from gpt4all-chat/src/qml/LocalDocsView.qml rename to gpt4all-chat/qml/LocalDocsView.qml diff --git a/gpt4all-chat/src/qml/ModelSettings.qml b/gpt4all-chat/qml/ModelSettings.qml similarity index 100% rename from gpt4all-chat/src/qml/ModelSettings.qml rename to gpt4all-chat/qml/ModelSettings.qml diff --git a/gpt4all-chat/src/qml/ModelsView.qml b/gpt4all-chat/qml/ModelsView.qml similarity index 100% rename from gpt4all-chat/src/qml/ModelsView.qml rename to gpt4all-chat/qml/ModelsView.qml diff --git a/gpt4all-chat/src/qml/MyBusyIndicator.qml b/gpt4all-chat/qml/MyBusyIndicator.qml similarity index 100% rename from gpt4all-chat/src/qml/MyBusyIndicator.qml rename to gpt4all-chat/qml/MyBusyIndicator.qml diff --git a/gpt4all-chat/src/qml/MyButton.qml b/gpt4all-chat/qml/MyButton.qml similarity index 100% rename from gpt4all-chat/src/qml/MyButton.qml rename to gpt4all-chat/qml/MyButton.qml diff --git a/gpt4all-chat/src/qml/MyCheckBox.qml b/gpt4all-chat/qml/MyCheckBox.qml similarity index 100% rename from gpt4all-chat/src/qml/MyCheckBox.qml rename to gpt4all-chat/qml/MyCheckBox.qml diff --git a/gpt4all-chat/src/qml/MyComboBox.qml b/gpt4all-chat/qml/MyComboBox.qml similarity index 100% rename from gpt4all-chat/src/qml/MyComboBox.qml rename to gpt4all-chat/qml/MyComboBox.qml diff --git a/gpt4all-chat/src/qml/MyDialog.qml b/gpt4all-chat/qml/MyDialog.qml similarity index 100% rename from gpt4all-chat/src/qml/MyDialog.qml rename to gpt4all-chat/qml/MyDialog.qml diff --git a/gpt4all-chat/src/qml/MyDirectoryField.qml b/gpt4all-chat/qml/MyDirectoryField.qml similarity index 100% rename from gpt4all-chat/src/qml/MyDirectoryField.qml rename to gpt4all-chat/qml/MyDirectoryField.qml diff --git a/gpt4all-chat/src/qml/MyFancyLink.qml b/gpt4all-chat/qml/MyFancyLink.qml similarity index 100% rename from gpt4all-chat/src/qml/MyFancyLink.qml rename to gpt4all-chat/qml/MyFancyLink.qml diff --git a/gpt4all-chat/src/qml/MyMenu.qml b/gpt4all-chat/qml/MyMenu.qml similarity index 100% rename from gpt4all-chat/src/qml/MyMenu.qml rename to gpt4all-chat/qml/MyMenu.qml diff --git a/gpt4all-chat/src/qml/MyMenuItem.qml b/gpt4all-chat/qml/MyMenuItem.qml similarity index 100% rename from gpt4all-chat/src/qml/MyMenuItem.qml rename to gpt4all-chat/qml/MyMenuItem.qml diff --git a/gpt4all-chat/src/qml/MyMiniButton.qml b/gpt4all-chat/qml/MyMiniButton.qml similarity index 100% rename from gpt4all-chat/src/qml/MyMiniButton.qml rename to gpt4all-chat/qml/MyMiniButton.qml diff --git a/gpt4all-chat/src/qml/MySettingsButton.qml b/gpt4all-chat/qml/MySettingsButton.qml similarity index 100% rename from gpt4all-chat/src/qml/MySettingsButton.qml rename to gpt4all-chat/qml/MySettingsButton.qml diff --git a/gpt4all-chat/src/qml/MySettingsDestructiveButton.qml b/gpt4all-chat/qml/MySettingsDestructiveButton.qml similarity index 100% rename from gpt4all-chat/src/qml/MySettingsDestructiveButton.qml rename to gpt4all-chat/qml/MySettingsDestructiveButton.qml diff --git a/gpt4all-chat/src/qml/MySettingsLabel.qml b/gpt4all-chat/qml/MySettingsLabel.qml similarity index 100% rename from gpt4all-chat/src/qml/MySettingsLabel.qml rename to gpt4all-chat/qml/MySettingsLabel.qml diff --git a/gpt4all-chat/src/qml/MySettingsStack.qml b/gpt4all-chat/qml/MySettingsStack.qml similarity index 100% rename from gpt4all-chat/src/qml/MySettingsStack.qml rename to gpt4all-chat/qml/MySettingsStack.qml diff --git a/gpt4all-chat/src/qml/MySettingsTab.qml b/gpt4all-chat/qml/MySettingsTab.qml similarity index 100% rename from gpt4all-chat/src/qml/MySettingsTab.qml rename to gpt4all-chat/qml/MySettingsTab.qml diff --git a/gpt4all-chat/src/qml/MySlug.qml b/gpt4all-chat/qml/MySlug.qml similarity index 100% rename from gpt4all-chat/src/qml/MySlug.qml rename to gpt4all-chat/qml/MySlug.qml diff --git a/gpt4all-chat/src/qml/MyTextArea.qml b/gpt4all-chat/qml/MyTextArea.qml similarity index 100% rename from gpt4all-chat/src/qml/MyTextArea.qml rename to gpt4all-chat/qml/MyTextArea.qml diff --git a/gpt4all-chat/src/qml/MyTextButton.qml b/gpt4all-chat/qml/MyTextButton.qml similarity index 100% rename from gpt4all-chat/src/qml/MyTextButton.qml rename to gpt4all-chat/qml/MyTextButton.qml diff --git a/gpt4all-chat/src/qml/MyTextField.qml b/gpt4all-chat/qml/MyTextField.qml similarity index 100% rename from gpt4all-chat/src/qml/MyTextField.qml rename to gpt4all-chat/qml/MyTextField.qml diff --git a/gpt4all-chat/src/qml/MyToolButton.qml b/gpt4all-chat/qml/MyToolButton.qml similarity index 100% rename from gpt4all-chat/src/qml/MyToolButton.qml rename to gpt4all-chat/qml/MyToolButton.qml diff --git a/gpt4all-chat/src/qml/MyWelcomeButton.qml b/gpt4all-chat/qml/MyWelcomeButton.qml similarity index 100% rename from gpt4all-chat/src/qml/MyWelcomeButton.qml rename to gpt4all-chat/qml/MyWelcomeButton.qml diff --git a/gpt4all-chat/src/qml/NetworkDialog.qml b/gpt4all-chat/qml/NetworkDialog.qml similarity index 100% rename from gpt4all-chat/src/qml/NetworkDialog.qml rename to gpt4all-chat/qml/NetworkDialog.qml diff --git a/gpt4all-chat/src/qml/NewVersionDialog.qml b/gpt4all-chat/qml/NewVersionDialog.qml similarity index 100% rename from gpt4all-chat/src/qml/NewVersionDialog.qml rename to gpt4all-chat/qml/NewVersionDialog.qml diff --git a/gpt4all-chat/src/qml/PopupDialog.qml b/gpt4all-chat/qml/PopupDialog.qml similarity index 100% rename from gpt4all-chat/src/qml/PopupDialog.qml rename to gpt4all-chat/qml/PopupDialog.qml diff --git a/gpt4all-chat/src/qml/SettingsView.qml b/gpt4all-chat/qml/SettingsView.qml similarity index 100% rename from gpt4all-chat/src/qml/SettingsView.qml rename to gpt4all-chat/qml/SettingsView.qml diff --git a/gpt4all-chat/src/qml/StartupDialog.qml b/gpt4all-chat/qml/StartupDialog.qml similarity index 100% rename from gpt4all-chat/src/qml/StartupDialog.qml rename to gpt4all-chat/qml/StartupDialog.qml diff --git a/gpt4all-chat/src/qml/SwitchModelDialog.qml b/gpt4all-chat/qml/SwitchModelDialog.qml similarity index 100% rename from gpt4all-chat/src/qml/SwitchModelDialog.qml rename to gpt4all-chat/qml/SwitchModelDialog.qml diff --git a/gpt4all-chat/src/qml/Theme.qml b/gpt4all-chat/qml/Theme.qml similarity index 100% rename from gpt4all-chat/src/qml/Theme.qml rename to gpt4all-chat/qml/Theme.qml diff --git a/gpt4all-chat/src/qml/ThumbsDownDialog.qml b/gpt4all-chat/qml/ThumbsDownDialog.qml similarity index 100% rename from gpt4all-chat/src/qml/ThumbsDownDialog.qml rename to gpt4all-chat/qml/ThumbsDownDialog.qml diff --git a/gpt4all-chat/src/qml/Toast.qml b/gpt4all-chat/qml/Toast.qml similarity index 100% rename from gpt4all-chat/src/qml/Toast.qml rename to gpt4all-chat/qml/Toast.qml diff --git a/gpt4all-chat/src/qml/ToastManager.qml b/gpt4all-chat/qml/ToastManager.qml similarity index 100% rename from gpt4all-chat/src/qml/ToastManager.qml rename to gpt4all-chat/qml/ToastManager.qml diff --git a/gpt4all-chat/src/CMakeLists.txt b/gpt4all-chat/src/CMakeLists.txt deleted file mode 100644 index e489fd86..00000000 --- a/gpt4all-chat/src/CMakeLists.txt +++ /dev/null @@ -1,72 +0,0 @@ -set_source_files_properties("${GGML_METALLIB}" PROPERTIES GENERATED ON) - -qt_add_executable(chat - main.cpp - chat.cpp chat.h - chatapi.cpp chatapi.h - chatlistmodel.cpp chatlistmodel.h - chatllm.cpp chatllm.h - chatmodel.h - chatviewtextprocessor.cpp chatviewtextprocessor.h - database.cpp database.h - download.cpp download.h - embllm.cpp embllm.h - llm.cpp llm.h - localdocs.cpp localdocs.h - localdocsmodel.cpp localdocsmodel.h - logger.cpp logger.h - modellist.cpp modellist.h - mysettings.cpp mysettings.h - network.cpp network.h - server.cpp server.h -) - -qt_add_qml_module(chat - URI gpt4all - VERSION 1.0 - NO_CACHEGEN - QML_FILES - main.qml - qml/AddCollectionView.qml - qml/AddModelView.qml - qml/ApplicationSettings.qml - qml/ChatDrawer.qml - qml/ChatView.qml - qml/CollectionsDrawer.qml - qml/HomeView.qml - qml/LocalDocsSettings.qml - qml/LocalDocsView.qml - qml/ModelSettings.qml - qml/ModelsView.qml - qml/NetworkDialog.qml - qml/NewVersionDialog.qml - qml/PopupDialog.qml - qml/SettingsView.qml - qml/StartupDialog.qml - qml/SwitchModelDialog.qml - qml/Theme.qml - qml/ThumbsDownDialog.qml - qml/Toast.qml - qml/ToastManager.qml - qml/MyBusyIndicator.qml - qml/MyButton.qml - qml/MyCheckBox.qml - qml/MyComboBox.qml - qml/MyDialog.qml - qml/MyDirectoryField.qml - qml/MyFancyLink.qml - qml/MyMenu.qml - qml/MyMenuItem.qml - qml/MyMiniButton.qml - qml/MySettingsButton.qml - qml/MySettingsDestructiveButton.qml - qml/MySettingsLabel.qml - qml/MySettingsStack.qml - qml/MySettingsTab.qml - qml/MySlug.qml - qml/MyTextArea.qml - qml/MyTextButton.qml - qml/MyTextField.qml - qml/MyToolButton.qml - qml/MyWelcomeButton.qml -)