From 7b0b04a1ee70efa1395055d79eda1bc187ff5ab5 Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Sun, 29 Mar 2026 17:17:57 +0200 Subject: [PATCH] feat: Add LLMCore submodule --- .gitmodules | 3 +++ CMakeLists.txt | 1 + ChatView/CMakeLists.txt | 2 +- context/CMakeLists.txt | 2 +- llmcore/CMakeLists.txt | 6 +++--- sources/external/llmcore | 1 + 6 files changed, 10 insertions(+), 5 deletions(-) create mode 160000 sources/external/llmcore diff --git a/.gitmodules b/.gitmodules index e69de29..3f41606 100644 --- a/.gitmodules +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "sources/external/llmcore"] + path = sources/external/llmcore + url = https://github.com/Palm1r/llmcore.git diff --git a/CMakeLists.txt b/CMakeLists.txt index a334cc3..b168521 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,7 @@ add_definitions( ) add_subdirectory(llmcore) +add_subdirectory(sources/external/llmcore) add_subdirectory(settings) add_subdirectory(logger) add_subdirectory(UIControls) diff --git a/ChatView/CMakeLists.txt b/ChatView/CMakeLists.txt index 777bbcd..c0e7412 100644 --- a/ChatView/CMakeLists.txt +++ b/ChatView/CMakeLists.txt @@ -80,7 +80,7 @@ target_link_libraries(QodeAssistChatView Qt::Network QtCreator::Core QtCreator::Utils - LLMCore + PluginLLMCore QodeAssistSettings Context QodeAssistUIControlsplugin diff --git a/context/CMakeLists.txt b/context/CMakeLists.txt index 28f84aa..c5754c1 100644 --- a/context/CMakeLists.txt +++ b/context/CMakeLists.txt @@ -20,7 +20,7 @@ target_link_libraries(Context QtCreator::Utils QtCreator::ProjectExplorer PRIVATE - LLMCore + PluginLLMCore QodeAssistSettings ) diff --git a/llmcore/CMakeLists.txt b/llmcore/CMakeLists.txt index 83a9ab6..a2ea5df 100644 --- a/llmcore/CMakeLists.txt +++ b/llmcore/CMakeLists.txt @@ -1,4 +1,4 @@ -add_library(LLMCore STATIC +add_library(PluginLLMCore STATIC RequestType.hpp Provider.hpp Provider.cpp ProvidersManager.hpp ProvidersManager.cpp @@ -21,7 +21,7 @@ add_library(LLMCore STATIC ResponseCleaner.hpp ) -target_link_libraries(LLMCore +target_link_libraries(PluginLLMCore PUBLIC Qt::Core Qt::Network @@ -32,4 +32,4 @@ target_link_libraries(LLMCore QodeAssistLogger ) -target_include_directories(LLMCore PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) +target_include_directories(PluginLLMCore PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/sources/external/llmcore b/sources/external/llmcore new file mode 160000 index 0000000..555633f --- /dev/null +++ b/sources/external/llmcore @@ -0,0 +1 @@ +Subproject commit 555633fca31a07e7ed718054b331a2d7fcae9776