-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
106 lines (95 loc) · 3.19 KB
/
CMakeLists.txt
File metadata and controls
106 lines (95 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
cmake_minimum_required(VERSION 3.20)
project(LlamaCpp)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(QtCreator REQUIRED COMPONENTS Core TextEditor ProjectExplorer)
find_package(Qt6 COMPONENTS Widgets LinguistTools Sql Test REQUIRED)
# Add a CMake option that enables building your plugin with tests.
# You don't want your released plugin binaries to contain tests,
# so make that default to 'NO'.
# Enable tests by passing -DWITH_TESTS=ON to CMake.
option(WITH_TESTS "Builds with tests" NO)
if (WITH_TESTS)
# Look for QtTest
find_package(Qt6 REQUIRED COMPONENTS Test)
# Tell CMake functions like add_qtc_plugin about the QtTest component.
set(IMPLICIT_DEPENDS Qt::Test)
# Enable ctest for auto tests.
enable_testing()
endif()
add_qtc_library(md4c STATIC
PUBLIC_INCLUDES 3rdparty/md4c/src
SOURCES
3rdparty/md4c/src/entity.c
3rdparty/md4c/src/md4c.c
3rdparty/md4c/src/md4c-html.c
)
add_qtc_library(LlamaSpinner STATIC
DEFINES QT_STATICPLUGIN
SOURCES
llamaspinner.cpp llamaspinner.h llamaspinner.json
DEPENDS
Qt::Widgets
)
add_qtc_plugin(LlamaCpp
LONG_DESCRIPTION_MD README.md
PLUGIN_DEPENDS
QtCreator::Core
QtCreator::ProjectExplorer
QtCreator::TextEditor
DEPENDS
Qt::Widgets
Qt::Sql
QtCreator::ExtensionSystem
QtCreator::Utils
QtCreator::KSyntaxHighlighting
md4c
LlamaSpinner
SOURCES
llama.qrc
llamaicons.h
llamachateditor.cpp llamachateditor.h
llamachatinput.cpp llamachatinput.h
llamachatmanager.cpp llamachatmanager.h
llamachatmessage.cpp llamachatmessage.h
llamalocatorfilter.cpp llamalocatorfilter.h
llamaconversationsmodel.cpp llamaconversationsmodel.h
llamaconversationsview.cpp llamaconversationsview.h
llamaconstants.h
llamasyntaxhighligher.cpp llamasyntaxhighlighter.h
llamamarkdownwidget.cpp llamamarkdownwidget.h
llamaplugin.cpp llamaplugin.h
llamaprojectpanel.cpp llamaprojectpanel.h
llamasearchtoolbar.cpp llamasearchtoolbar.h
llamasettings.cpp llamasettings.h
llamastorage.cpp llamastorage.h
llamathinkingsectionparser.cpp llamathinkingsectionparser.h
llamatheme.cpp llamatheme.h
llamatr.h
llamatypes.h
LlamaCpp.json.in
markdownrenderer.cpp markdownrenderer.h
README.md
tools/askuser_tool.cpp tools/askuser_tool.h
tools/build_project_tool.cpp tools/build_project_tool.h
tools/create_directory_tool.cpp tools/create_directory_tool.h
tools/editfile_tool.cpp tools/editfile_tool.h
tools/factory.h
tools/listdir_tool.cpp tools/listdir_tool.h
tools/list_issues_tool.cpp tools/list_issues_tool.h
tools/list_project_tool.cpp tools/list_project_tool.h
tools/python_tool.cpp tools/python_tool.h
tools/readfile_tool.cpp tools/readfile_tool.h
tools/regexsearch_tool.cpp tools/regexsearch_tool.h
tools/run_project_tool.cpp tools/run_project_tool.h
tools/open_project_tool.cpp tools/open_project_tool.h
tools/tool.cpp tools/tool.h
tools/tool_utils.cpp tools/tool_utils.h
toolsettingswidget.cpp toolsettingswidget.h
)
add_subdirectory(tests)
add_subdirectory(translations)