GMock unit test tryout
[ptas] / tests / ut_gmocktest / ut_gmocktest.pro
diff --git a/tests/ut_gmocktest/ut_gmocktest.pro b/tests/ut_gmocktest/ut_gmocktest.pro
new file mode 100644 (file)
index 0000000..2f2244f
--- /dev/null
@@ -0,0 +1,17 @@
+TARGET = ut_gmocktest
+QT -= gui
+CONFIG += console
+CONFIG -= app_bundle
+TEMPLATE = app
+OBJECTS_DIR = .obj
+MOC_DIR = .moc
+SOURCES += ut_gmocktest.cpp \
+    painter.cpp
+HEADERS += \
+    turtle.h \
+    mock_turtle.h \
+    painter.h
+
+GMOCKBUILDDIR = ../../gmock/build
+QMAKE_CXXFLAGS += $$system($$GMOCKBUILDDIR/scripts/gmock-config --cppflags --cxxflags)
+QMAKE_LIBS += $$GMOCKBUILDDIR/lib/.libs/libgmock.a $$GMOCKBUILDDIR/gtest/lib/.libs/libgtest.a