mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-21 22:33:54 -07:00
Add dummy googletest
Uses the built in cmake -Dtest=ON It should download googletest on the fly if needed. Adds a new make target, `make test` Ref #167
This commit is contained in:
parent
cd02df78a1
commit
3ebe42c400
6 changed files with 75 additions and 6 deletions
|
|
@ -11,11 +11,12 @@ fi
|
|||
if [[ $TRAVIS_OS_NAME == "linux" && $QT4 == 0 ]]; then
|
||||
prefix="-DCMAKE_PREFIX_PATH=/opt/qt52/lib/cmake/"
|
||||
fi
|
||||
cmake .. -DWITH_SERVER=1 -DCMAKE_BUILD_TYPE=$BUILDTYPE -DWITH_QT4=$QT4 $prefix
|
||||
|
||||
if [[ $BUILDTYPE == "Debug" ]]; then
|
||||
cmake .. -DWITH_SERVER=1 -DCMAKE_BUILD_TYPE=$BUILDTYPE -Dtest=ON -DWITH_QT4=$QT4 $prefix
|
||||
make -j2
|
||||
make test
|
||||
else
|
||||
cmake .. -DWITH_SERVER=1 -DCMAKE_BUILD_TYPE=$BUILDTYPE -DWITH_QT4=$QT4 $prefix
|
||||
make package -j2
|
||||
fi
|
||||
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue