-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
104 lines (89 loc) · 2.14 KB
/
CMakeLists.txt
File metadata and controls
104 lines (89 loc) · 2.14 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
cmake_minimum_required(VERSION 3.14)
project(miotts LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_C_STANDARD 11)
# llama.cpp options — disable things we don't need
set(LLAMA_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(LLAMA_BUILD_TOOLS OFF CACHE BOOL "" FORCE)
set(LLAMA_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(LLAMA_BUILD_SERVER OFF CACHE BOOL "" FORCE)
add_subdirectory(third_party/llama.cpp)
# miotts executable
add_executable(miotts
src/main.cpp
src/miocodec.cpp
src/istft.cpp
src/text-normalize.cpp
src/test-to-speech.cpp
src/token-parser.cpp
src/wav-writer.cpp
)
target_include_directories(miotts PRIVATE
src
third_party/llama.cpp/include
third_party/llama.cpp/ggml/include
)
target_link_libraries(miotts PRIVATE
llama
ggml
m
)
add_executable(miotts-stream-device
examples/stream-to-device.cpp
src/miocodec.cpp
src/istft.cpp
src/text-normalize.cpp
src/test-to-speech.cpp
src/token-parser.cpp
src/wav-writer.cpp
)
target_include_directories(miotts-stream-device PRIVATE
src
third_party/llama.cpp/include
third_party/llama.cpp/ggml/include
third_party/llama.cpp/vendor/miniaudio
)
target_link_libraries(miotts-stream-device PRIVATE
llama
ggml
m
)
add_executable(miotts-stream-benchmark
examples/stream-benchmark.cpp
src/miocodec.cpp
src/istft.cpp
src/text-normalize.cpp
src/test-to-speech.cpp
src/token-parser.cpp
src/wav-writer.cpp
)
target_include_directories(miotts-stream-benchmark PRIVATE
src
third_party/llama.cpp/include
third_party/llama.cpp/ggml/include
)
target_link_libraries(miotts-stream-benchmark PRIVATE
llama
ggml
m
)
add_executable(miotts-stream-compare
examples/stream-compare.cpp
src/miocodec.cpp
src/istft.cpp
src/text-normalize.cpp
src/test-to-speech.cpp
src/token-parser.cpp
src/wav-writer.cpp
)
target_include_directories(miotts-stream-compare PRIVATE
src
third_party/llama.cpp/include
third_party/llama.cpp/ggml/include
)
target_link_libraries(miotts-stream-compare PRIVATE
llama
ggml
m
)