1
0
mirror of https://github.com/slendidev/smath.git synced 2026-03-17 02:26:50 +02:00

Add optional interop headers

Those headers are used for interoping with various popular C++
libraries. For now, those libraries are Eigen, GLM, HandmadeMath,
Raylib, and SFML. Some other ones may be added in the future.

Those are disabled by default, as most projects I would imagine would
not use them. But in case you need any of them for special reasons like
I did, they are there.

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2026-03-12 01:32:35 +02:00
parent 2a161e36ab
commit 224b924772
8 changed files with 583 additions and 14 deletions

View File

@@ -55,10 +55,14 @@
})
];
extraCMakeFlags = [
"-DSMATH_INSTALL_INTEROP_HEADERS=ON"
];
installPhase = ''
runHook preInstall
mkdir -p $out/include/smath
cp ../include/smath/smath.hpp $out/include/smath/
mkdir -p $out/include/
cp -r ../include/smath/ $out/include/
runHook postInstall
'';