-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent test errors if CPM_SOURCE_CACHE is set Use cmake_parse_arguments(PARSE_ARGV...) Add CMake workflow presets test
- Loading branch information
1 parent
b53d0c3
commit d9c9aa3
Showing
9 changed files
with
195 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,15 +11,15 @@ CPMAddPackage("gh:cpm-cmake/[email protected]") | |
CPMAddPackage( | ||
NAME googletest | ||
GITHUB_REPOSITORY google/googletest | ||
GIT_TAG release-1.12.1 | ||
VERSION 1.12.1 | ||
# GIT_TAG v1.14.0 | ||
VERSION 1.14.0 | ||
OPTIONS "INSTALL_GTEST OFF" "gtest_force_shared_crt" | ||
) | ||
|
||
# ---- Create binary ---- | ||
|
||
add_executable(CPMExampleGtest main.cpp) | ||
target_link_libraries(CPMExampleGtest fibonacci gtest gtest_main gmock) | ||
target_link_libraries(CPMExampleGtest fibonacci GTest::gtest_main GTest::gmock) | ||
target_compile_features(CPMExampleGtest PRIVATE cxx_std_17) | ||
|
||
# ---- Enable testing ---- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.