285
|
1 #-----------------------------------------------------------------------------
|
|
2 #
|
|
3 # Project created by QtCreator 2013-03-29T10:58:23
|
|
4 #
|
|
5 #-----------------------------------------------------------------------------
|
|
6
|
|
7 TEMPLATE = app
|
|
8 TARGET = unit_test
|
|
9
|
|
10 CONFIG *= qt
|
|
11 CONFIG -= app_bundle
|
|
12
|
|
13 QT *= core
|
|
14 QT -= gui
|
|
15
|
|
16 DEFINES *= UNIX
|
|
17
|
|
18 #-----------------------------------------------------------------------------
|
|
19 # Need the GoogleTest 1.6.0 library here:
|
|
20 GTEST=$$PWD/../../../gtest-1.6.0
|
|
21 !exists($$GTEST/include): GTEST=$$PWD/../../../../Dependencies/gtest-1.6.0
|
|
22 !exists($$GTEST/include): error(Requires GoogleTest 1.6.0)
|
|
23 INCLUDEPATH *= $$GTEST/include $$GTEST/gtest-1.6.0
|
|
24 SOURCES *= $$GTEST/gtest-1.6.0/src/gtest-all.cc
|
|
25
|
|
26 win32: DEFINES *= _VARIADIC_MAX=10
|
|
27
|
|
28 #-----------------------------------------------------------------------------
|
|
29 # Avoid unwanted warnings
|
|
30
|
|
31 unix {
|
|
32 QMAKE_CXXFLAGS_WARN_ON *= -Wno-unknown-pragmas
|
|
33 }
|
|
34
|
|
35 win32 {
|
|
36 QMAKE_CXXFLAGS *= -wd4244 -wd4068 -wd4305
|
|
37 }
|
|
38
|
|
39 #-----------------------------------------------------------------------------
|
|
40 SOURCES += \
|
|
41 $$PWD/../compass.c \
|
|
42 $$PWD/../compass_calib.c \
|
|
43 compass_trigo_test.cpp \
|
|
44 compass_test.cpp \
|
|
45 deco_volume_test.cpp \
|
|
46 unit_test.cpp
|
|
47
|
|
48 INCLUDEPATH *= $$PWD/..
|
|
49 HEADERS += \
|
|
50 $$PWD/../shared_definitions.h \
|
|
51 $$PWD/../p2_definitions.h \
|
|
52 $$PWD/../p2_deco.c \
|
|
53 $$PWD/../compass.h
|