aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBilly Donahue <BillyDonahue@users.noreply.github.com>2015-11-24 10:35:59 -0500
committerBilly Donahue <BillyDonahue@users.noreply.github.com>2015-11-24 10:35:59 -0500
commit93c37d59b01326aa142520997ed4a6a4eef44648 (patch)
treec0caa883783093df683c4ad85e76001f6af41498
parent884dd08d73d7174806256ea380158875aa418e78 (diff)
parent98d988deac06637364f6cd41c45c3db4a8a0b6bc (diff)
downloadgoogletest-93c37d59b01326aa142520997ed4a6a4eef44648.tar.gz
googletest-93c37d59b01326aa142520997ed4a6a4eef44648.tar.bz2
googletest-93c37d59b01326aa142520997ed4a6a4eef44648.zip
Merge pull request #632 from nocnokneo/add-cmake-install-rules
Add CMake install rules for gtest libraries and headers
-rw-r--r--googletest/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt
index 961672aa..9ef6a93f 100644
--- a/googletest/CMakeLists.txt
+++ b/googletest/CMakeLists.txt
@@ -93,6 +93,14 @@ target_link_libraries(gtest_main gtest)
########################################################################
#
+# Install rules
+install(TARGETS gtest gtest_main
+ DESTINATION lib)
+install(DIRECTORY ${gtest_SOURCE_DIR}/include/gtest
+ DESTINATION include)
+
+########################################################################
+#
# Samples on how to link user tests with gtest or gtest_main.
#
# They are not built by default. To build them, set the