mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-17 00:38:43 +00:00
gmock is a library for writing and using C++ mock classes, by Google. Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
From ba0a7d65c918cb7e3f2073553c4cc7af5858ed03 Mon Sep 17 00:00:00 2001
|
|
From: Otavio Salvador <otavio@ossystems.com.br>
|
|
Date: Thu, 31 Jul 2014 16:54:00 -0300
|
|
Subject: [PATCH] cmake: Add install command for libraries and headers
|
|
Organization: O.S. Systems Software LTDA.
|
|
|
|
Upstream-Status: Inappropriate [embedded specific]
|
|
|
|
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
---
|
|
CMakeLists.txt | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 572d044..90e797a 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -63,6 +63,8 @@ include_directories("${gmock_SOURCE_DIR}/include"
|
|
# Test sources.
|
|
"${gtest_SOURCE_DIR}")
|
|
|
|
+install(DIRECTORY ${gmock_SOURCE_DIR}/include/gmock DESTINATION include)
|
|
+
|
|
########################################################################
|
|
#
|
|
# Defines the gmock & gmock_main libraries. User tests should link
|
|
@@ -82,6 +84,10 @@ cxx_library(gmock_main
|
|
src/gmock-all.cc
|
|
src/gmock_main.cc)
|
|
|
|
+
|
|
+install(TARGETS gmock DESTINATION lib)
|
|
+install(TARGETS gmock_main DESTINATION lib)
|
|
+
|
|
########################################################################
|
|
#
|
|
# Google Mock's own tests.
|
|
--
|
|
1.9.1
|
|
|