FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
llama-cpp-python/CMakeLists.txt at main · Mrgithub93/llama-cpp-python · GitHub
Mrgithub93
/
llama-cpp-python
Public
forked from
abetlen/llama-cpp-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
llama-cpp-python
/
CMakeLists.txt
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (30 loc) · 959 Bytes
Breadcrumbs
llama-cpp-python
/
CMakeLists.txt
Copy path
File metadata and controls
34 lines (30 loc) · 959 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
cmake_minimum_required
(
VERSION
3.4...3.22
)
project
(llama_cpp)
option
(
FORCE_CMAKE
"Force CMake build of Python bindings"
OFF
)
set
(FORCE_CMAKE
$ENV{FORCE_CMAKE}
)
if
(
UNIX
AND
NOT
FORCE_CMAKE)
add_custom_command
(
OUTPUT
${
CMAKE_CURRENT_SOURCE_DIR
}
/vendor/llama.cpp/libllama.so
COMMAND
make
libllama.so
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/vendor/llama.cpp
)
add_custom_target
(
run
ALL
DEPENDS
${
CMAKE_CURRENT_SOURCE_DIR
}
/vendor/llama.cpp/libllama.so
)
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/vendor/llama.cpp/libllama.so
DESTINATION
llama_cpp
)
else
()
set
(
BUILD_SHARED_LIBS
"On"
)
add_subdirectory
(
vendor/llama.cpp
)
install
(
TARGETS
llama
LIBRARY
DESTINATION
llama_cpp
RUNTIME
DESTINATION
llama_cpp
ARCHIVE
DESTINATION
llama_cpp
FRAMEWORK
DESTINATION
llama_cpp
RESOURCE
DESTINATION
llama_cpp
)
endif
()
Back
|
FazBrowse Home
|
New Git URL