fix linking test lib

This commit is contained in:
Recep Aslantas
2017-04-25 23:56:58 +03:00
parent 38be538342
commit 41c874aa97
2 changed files with 22 additions and 0 deletions

View File

@@ -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
View 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