summaryrefslogtreecommitdiff
path: root/PluginControlInterface/test
diff options
context:
space:
mode:
authorchristian linke <christian.linke@bmw.de>2012-10-04 16:25:51 +0200
committerchristian linke <christian.linke@bmw.de>2012-10-04 16:25:51 +0200
commitbeec2584c3bff46ae7aa0bf57389fb6dadf33917 (patch)
tree735070d1d73cd80b2624372d6cf5fc036a16d713 /PluginControlInterface/test
parentfee37213648f86ca4fd13ed063182e2ce877aacf (diff)
downloadaudiomanager-beec2584c3bff46ae7aa0bf57389fb6dadf33917.tar.gz
* adding GoogleMock including GoogleTest into the project
Signed-off-by: christian linke <christian.linke@bmw.de>
Diffstat (limited to 'PluginControlInterface/test')
-rw-r--r--PluginControlInterface/test/CAmControlReceiverShadowTest.h2
-rw-r--r--PluginControlInterface/test/CMakeLists.txt8
2 files changed, 5 insertions, 5 deletions
diff --git a/PluginControlInterface/test/CAmControlReceiverShadowTest.h b/PluginControlInterface/test/CAmControlReceiverShadowTest.h
index 3d112be..a544c39 100644
--- a/PluginControlInterface/test/CAmControlReceiverShadowTest.h
+++ b/PluginControlInterface/test/CAmControlReceiverShadowTest.h
@@ -19,7 +19,7 @@
#define CAMCONTROLRECEIVERSHADOWTEST_H_
#include "gtest/gtest.h"
-#include <gmock/gmock.h>
+#include "gmock/gmock.h"
#include "MockIAmControlReceive.h"
#include "shared/CAmSocketHandler.h"
#include "shared/CAmSerializer.h"
diff --git a/PluginControlInterface/test/CMakeLists.txt b/PluginControlInterface/test/CMakeLists.txt
index 5209078..37de565 100644
--- a/PluginControlInterface/test/CMakeLists.txt
+++ b/PluginControlInterface/test/CMakeLists.txt
@@ -22,7 +22,7 @@ set(EXECUTABLE_OUTPUT_PATH ${TEST_EXECUTABLE_OUTPUT_PATH})
FIND_PACKAGE (Threads)
FIND_PACKAGE(PkgConfig)
-FIND_PACKAGE(GMock REQUIRED)
+
IF(WITH_DLT)
pkg_check_modules(DLT REQUIRED automotive-dlt>=2.2.0)
@@ -62,11 +62,11 @@ TARGET_LINK_LIBRARIES(AmControlReceiverShadowTest
${DBUS_LIBRARY}
${SQLITE_LIBRARIES}
gtest
- ${GMOCK_LIBRARY}
+ gmock
rt
)
-ADD_DEPENDENCIES(AmControlReceiverShadowTest gtest)
+ADD_DEPENDENCIES(AmControlReceiverShadowTest gtest gmock)
INSTALL(TARGETS AmControlReceiverShadowTest
DESTINATION "~/AudioManagerTest/"
@@ -74,6 +74,6 @@ INSTALL(TARGETS AmControlReceiverShadowTest
COMPONENT tests
)
-SET(ADD_DEPEND "audiomanager-bin" "dlt" "libdbus-1-3(>=1.2.16)" "google-mock" "libpthread-stubs0")
+SET(ADD_DEPEND "audiomanager-bin" "dlt" "libdbus-1-3(>=1.2.16)" "libpthread-stubs0")
set_property(GLOBAL APPEND PROPERTY tests_prop "${ADD_DEPEND}")