Mercurial > public > hwos_code
diff src/Tests/unit_test.pro @ 285:cd2320cd6f9a
NEW unit tests for gas volumes...
author | jdg@air |
---|---|
date | Fri, 29 May 2015 01:25:45 +0200 |
parents | src/Tests/compass_test.pro@7d9edd3b8c86 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/Tests/unit_test.pro Fri May 29 01:25:45 2015 +0200 @@ -0,0 +1,53 @@ +#----------------------------------------------------------------------------- +# +# Project created by QtCreator 2013-03-29T10:58:23 +# +#----------------------------------------------------------------------------- + +TEMPLATE = app +TARGET = unit_test + +CONFIG *= qt +CONFIG -= app_bundle + +QT *= core +QT -= gui + +DEFINES *= UNIX + +#----------------------------------------------------------------------------- +# Need the GoogleTest 1.6.0 library here: +GTEST=$$PWD/../../../gtest-1.6.0 +!exists($$GTEST/include): GTEST=$$PWD/../../../../Dependencies/gtest-1.6.0 +!exists($$GTEST/include): error(Requires GoogleTest 1.6.0) +INCLUDEPATH *= $$GTEST/include $$GTEST/gtest-1.6.0 +SOURCES *= $$GTEST/gtest-1.6.0/src/gtest-all.cc + +win32: DEFINES *= _VARIADIC_MAX=10 + +#----------------------------------------------------------------------------- +# Avoid unwanted warnings + +unix { + QMAKE_CXXFLAGS_WARN_ON *= -Wno-unknown-pragmas +} + +win32 { + QMAKE_CXXFLAGS *= -wd4244 -wd4068 -wd4305 +} + +#----------------------------------------------------------------------------- +SOURCES += \ + $$PWD/../compass.c \ + $$PWD/../compass_calib.c \ + compass_trigo_test.cpp \ + compass_test.cpp \ + deco_volume_test.cpp \ + unit_test.cpp + +INCLUDEPATH *= $$PWD/.. +HEADERS += \ + $$PWD/../shared_definitions.h \ + $$PWD/../p2_definitions.h \ + $$PWD/../p2_deco.c \ + $$PWD/../compass.h