Skip to content

Commit b4b90ab

Browse files
committed
CMakeLists: add the ggml files and include Mesa files
1 parent ece33a2 commit b4b90ab

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

ggml/src/ggml-remotingfrontend/CMakeLists.txt

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,27 @@ cmake_policy(SET CMP0114 NEW)
1212
message(STATUS "Enable API Remoting frontend found")
1313

1414
ggml_add_backend_library(ggml-remotingfrontend
15-
ggml-remoting-frontend.cpp
15+
ggml-backend-buffer.cpp
16+
ggml-backend.cpp
17+
ggml-backend-device.cpp
18+
ggml-backend-reg.cpp
19+
ggml-buffer-type.cpp
20+
ggml-host-buffer-type.cpp
21+
virtgpu.cpp
1622
../../include/ggml-remoting-frontend.h
1723
)
1824

19-
#target_link_libraries(ggml-remotingfrontend PRIVATE remotingfrontend)
25+
target_link_libraries(ggml-remotingfrontend PUBLIC drm)
26+
target_include_directories(ggml-remotingfrontend PUBLIC /usr/include/libdrm/)
27+
28+
set(REMOTING_PROJECT /Users/kevinpouget/remoting)
29+
set(MESA_PROJECT_HOME ${REMOTING_PROJECT}/mesa)
30+
set(MESA_PROJECT_SRC ${MESA_PROJECT_HOME}/src)
31+
32+
target_include_directories(ggml-remotingfrontend PUBLIC ${MESA_PROJECT_SRC}/virtio/virtio-gpu/)
33+
target_include_directories(ggml-remotingfrontend PUBLIC ${MESA_PROJECT_HOME}/include)
2034
target_include_directories(ggml-remotingfrontend PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
35+
36+
target_compile_options(ggml-remotingfrontend PRIVATE -std=c++20)
37+
38+
# dnf install -y libdrm-devel

0 commit comments

Comments
 (0)