File: CMakeLists.txt

package info (click to toggle)
ggml 0.9.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 20,368 kB
  • sloc: cpp: 131,204; ansic: 46,699; lisp: 11,788; python: 1,591; objc: 1,395; sh: 1,042; makefile: 72
file content (21 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# simple-ctx

set(TEST_TARGET simple-ctx)
add_executable(${TEST_TARGET} simple-ctx.cpp)
target_link_libraries(${TEST_TARGET} PRIVATE ggml)

#
# simple-backend

set(TEST_TARGET simple-backend)
add_executable(${TEST_TARGET} simple-backend.cpp)
target_link_libraries(${TEST_TARGET} PRIVATE ggml)

if (GGML_CUDA)
    add_compile_definitions(GGML_USE_CUDA)
endif()

if (GGML_METAL)
    add_compile_definitions(GGML_USE_METAL)
endif()