mirror of
https://github.com/recp/cglm.git
synced 2025-10-03 08:41:55 +00:00
fix linking test lib
This commit is contained in:
@@ -73,3 +73,6 @@ libcglm_la_SOURCES=\
|
||||
src/cglm-mat.c
|
||||
|
||||
test_test_mat4_SOURCES=test/src/test_mat4.c
|
||||
|
||||
all-local:
|
||||
sh ./post-build.sh
|
||||
|
19
post-build.sh
Normal file
19
post-build.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Copyright (c), Recep Aslantas.
|
||||
#
|
||||
# MIT License (MIT), http://opensource.org/licenses/MIT
|
||||
# Full license can be found in the LICENSE file
|
||||
#
|
||||
|
||||
cd $(dirname "$0")
|
||||
|
||||
mkdir -p .libs
|
||||
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
ln -sf $(pwd)/test/lib/cmocka/build/src/libcmocka.0.dylib \
|
||||
.libs/libcmocka.0.dylib;
|
||||
else
|
||||
ln -sf $(pwd)/test/lib/cmocka/build/src/libcmocka.so.0 \
|
||||
.libs/libcmocka.so.0;
|
||||
fi
|
Reference in New Issue
Block a user