https://github.com/scivision/octave-cmake-mex
CMake and GNU Octave MEX producing complied code
https://github.com/scivision/octave-cmake-mex
cmake gnu-octave
Last synced: about 2 months ago
JSON representation
CMake and GNU Octave MEX producing complied code
- Host: GitHub
- URL: https://github.com/scivision/octave-cmake-mex
- Owner: scivision
- License: mit
- Created: 2022-05-22T17:57:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-16T06:11:56.000Z (5 months ago)
- Last Synced: 2025-02-11T17:59:37.821Z (3 months ago)
- Topics: cmake, gnu-octave
- Language: CMake
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GNU Octave CMake MEX
[](https://github.com/scivision/octave-cmake-mex/actions/workflows/ci.yml)
CMake and GNU Octave MEX examples of complied code.
## Usage
Build:
```sh
cmake -B build
cmake --build build
```Test:
```sh
ctest --test-dir build -V
```These examples work on any operating system Octave supports.
On **macOS**, we have observed the need to use AppleClang with
[Homebrew](https://brew.sh)-installed
Octave.If
[Octave was installed via Flatpak](https://www.scivision.dev/octave-install/)
on **Linux**,
it can be convenient to first
[open a sandboxed shell](https://docs.flatpak.org/en/latest/debugging.html)
in the Octave Flatpak sandbox:```sh
flatpak run --command=sh org.octave.Octave
```The **Windows** default
[installation](https://octave.org/download)
includes development libraries used in these examples.
On Windows, use GCC MinGW / MSYS2 as Visual Studio is not compatible with the Octave libraries.
Cygwin or WSL can also be used for Octave on Windows.---
[Matlab with CMake and MEX](https://github.com/scivision/matlab-cmake-mex)