Skip to content

Commit a10cda5

Browse files
authored
cmake : add pkg-config spec file for llama.cpp (ggml-org#7702)
1 parent 6f28a33 commit a10cda5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,13 @@ if (LLAMA_METAL)
13731373
endif()
13741374
endif()
13751375

1376+
configure_file(cmake/llama.pc.in
1377+
"${CMAKE_CURRENT_BINARY_DIR}/llama.pc"
1378+
@ONLY)
1379+
1380+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/llama.pc"
1381+
DESTINATION lib/pkgconfig)
1382+
13761383
#
13771384
# programs, examples and tests
13781385
#

cmake/llama.pc.in

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prefix=@CMAKE_INSTALL_PREFIX@
2+
exec_prefix=${prefix}
3+
libdir=${exec_prefix}/lib
4+
includedir=${prefix}/include
5+
6+
Name: llama
7+
Description: Port of Facebook's LLaMA model in C/C++
8+
Version: @PROJECT_VERSION@
9+
Libs: -L${libdir} -lllama
10+
Cflags: -I${includedir}

0 commit comments

Comments
 (0)