Some checks failed
Linux Build / Linux cpu (push) Has been cancelled
Linux Build / Linux cpu-clang (push) Has been cancelled
Linux Build / Linux vulkan (push) Has been cancelled
mac-build / macOS CPU (push) Has been cancelled
Nix Build / Nix (cpu) (push) Has been cancelled
Nix Build / Nix (vulkan) (push) Has been cancelled
windows-build / Windows CPU (push) Has been cancelled
21 lines
452 B
CMake
21 lines
452 B
CMake
#
|
|
# 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()
|