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 ${CMAKE_INSTALL_LIBDIR})
+install(TARGETS gmock_main DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
 ########################################################################
 #
 # Google Mock's own tests.
-- 
1.9.1

