Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
93c37d59
Commit
93c37d59
authored
Nov 24, 2015
by
Billy Donahue
Browse files
Merge pull request #632 from nocnokneo/add-cmake-install-rules
Add CMake install rules for gtest libraries and headers
parents
884dd08d
98d988de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
googletest/CMakeLists.txt
googletest/CMakeLists.txt
+8
-0
No files found.
googletest/CMakeLists.txt
View file @
93c37d59
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment