Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
7da4a411
Unverified
Commit
7da4a411
authored
Mar 26, 2022
by
Alecto Irene Perez
Browse files
Fix quickstart-cmake documentation
Signed-off-by:
Alecto Irene Perez
<
perez.cs@pm.me
>
parent
af29db7e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
docs/quickstart-cmake.md
docs/quickstart-cmake.md
+3
-2
No files found.
docs/quickstart-cmake.md
View file @
7da4a411
...
@@ -58,7 +58,8 @@ set(CMAKE_CXX_STANDARD 11)
...
@@ -58,7 +58,8 @@ set(CMAKE_CXX_STANDARD 11)
include
(
FetchContent
)
include
(
FetchContent
)
FetchContent_Declare
(
FetchContent_Declare
(
googletest
googletest
URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.11.0
)
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
# For Windows: Prevent overriding the parent project's compiler/linker settings
set
(
gtest_force_shared_crt ON CACHE BOOL
""
FORCE
)
set
(
gtest_force_shared_crt ON CACHE BOOL
""
FORCE
)
...
@@ -108,7 +109,7 @@ add_executable(
...
@@ -108,7 +109,7 @@ add_executable(
)
)
target_link_libraries
(
target_link_libraries
(
hello_test
hello_test
gtest_main
GTest::
gtest_main
)
)
include
(
GoogleTest
)
include
(
GoogleTest
)
...
...
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