cpp/ now has its own CMakeLists.txt that independently fetches mlx-c v0.4.1, allowing a CLion Claude to build and explore the C API surface without conflicting with the Go-side CMake build. Updated CLAUDE.md to reflect cpp/ as the project root with standalone build instructions. Added priority tasks to cpp/TODO.md: mlx_contiguous search, eval semantics verification, mlx_cumsum check for TopP sampling. Co-Authored-By: Virgil <virgil@lethean.io> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
472 B
CMake
18 lines
472 B
CMake
cmake_minimum_required(VERSION 3.24)
|
|
project(go-mlx-cpp LANGUAGES C CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
# Fetch mlx-c v0.4.1 — same version as the Go side
|
|
include(FetchContent)
|
|
FetchContent_Declare(
|
|
mlx-c
|
|
GIT_REPOSITORY https://github.com/ml-explore/mlx-c.git
|
|
GIT_TAG v0.4.1
|
|
)
|
|
|
|
set(MLX_BUILD_SAFETENSORS ON CACHE BOOL "" FORCE)
|
|
set(MLX_BUILD_GGUF OFF CACHE BOOL "" FORCE)
|
|
set(BUILD_SHARED_LIBS ON CACHE BOOL "" FORCE)
|
|
|
|
FetchContent_MakeAvailable(mlx-c)
|