mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-28 13:35:47 +03:00
cmake: Remove the need to configure tests/test_common.h
This commit is contained in:
1 parent
30db3eaa1f
commit
0bd03b658e
7 files changed
+16
-8
No files matched your search
+13
-1
@@ -16,7 +16,10 @@ echo $ARCHIVE
|
||||
if test $err = 0 -a "x$ARCHIVE" != "x"; then
|
||||
DIR=`pwd`/`tar taf $ARCHIVE |cut -d/ -f1|head -1`
|
||||
tar xaf $ARCHIVE && cd $DIR
|
||||
err=$terr
|
||||
terr=$?
|
||||
if [ $err = 0 ] ; then
|
||||
err=$terr
|
||||
fi
|
||||
|
||||
# LwIP
|
||||
make -C $DIR/examples/lwip EXTRA_CFLAGS=-Werror
|
||||
@@ -46,6 +49,15 @@ if test $err = 0 -a "x$ARCHIVE" != "x"; then
|
||||
if [ $err = 0 ] ; then
|
||||
err=$terr
|
||||
fi
|
||||
|
||||
# cmake
|
||||
cmake -E make_directory test-cmake
|
||||
cd test-cmake
|
||||
cmake .. -DENABLE_EXAMPLES=ON -DENABLE_TESTS=ON -DENABLE_DTLS=OFF -DENABLE_DOCS=OFF -DWARNING_TO_ERROR=ON
|
||||
terr=$?
|
||||
if [ $err = 0 ] ; then
|
||||
err=$terr
|
||||
fi
|
||||
fi
|
||||
|
||||
exit $err
|
||||
Reference in new issue
Block a user