From 98d988deac06637364f6cd41c45c3db4a8a0b6bc Mon Sep 17 00:00:00 2001 From: Taylor Braun-Jones Date: Mon, 23 Nov 2015 16:53:09 -0500 Subject: [PATCH] Add CMake install rules for gtest libraries and headers --- googletest/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt index 961672aa..9ef6a93f 100644 --- a/googletest/CMakeLists.txt +++ b/googletest/CMakeLists.txt @@ -91,6 +91,14 @@ cxx_library(gtest "${cxx_strict}" src/gtest-all.cc) cxx_library(gtest_main "${cxx_strict}" src/gtest_main.cc) 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.