| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
|
|
|
|
|
|
| |
Clarify build system support - CMake and automake community supported
PiperOrigin-RevId: 245821927
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Building all test binaries under their respective subtrees makes
building the project via cmake easier to grok without additional hacks.
In particular, when dealing with the conversion I proposed in
https://reviews.freebsd.org/D19430 (switching from autotools to cmake),
I ran into unexpected gtest prefixing under the googlemock directory, as
opposed to the googletest directory. Example:
Before: `googlemock/gtest/googletest-break-on-failure-unittest_`
After: `googletest/googletest-break-on-failure-unittest_`
The latter form is easier to translate to packaging manifests when
building googlemock is disabled, as well as enabled, as the path remains
consistent when the feature flag is disabled.
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
|
|
|
|
|
|
| |
Drop generated file gmock-generated-internal-utils.h.
PiperOrigin-RevId: 228232195
|
|
|
|
|
|
| |
One macro to rule them all.
PiperOrigin-RevId: 221462515
|
|
|
|
|
|
| |
Remove all mention of TR1 tuple and our own implementation of tuple.
PiperOrigin-RevId: 216395043
|
|
|
|
|
|
|
|
| |
e93da23920e5b6887d6a6a291c3a59f83f5b579e
Closes #1836
PiperOrigin-RevId: 215461025
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To make sure packages are relocatable, use `$<INSTALL_PREFIX>` in
`$<INSTALL_INTERFACE:...>` `target_include_directories`.
`$<INSTALL_PREFIX>` was introduced in CMake 2.8.11, which is already
being checked for locally.
References:
- https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#id19
- https://github.com/robotology/how-to-export-cpp-library/blob/claudio/headeronly/src/LibTemplateCMake/CMakeLists.txt#L42
Signed-off-by: Dakota Hawkins <dakotahawkins@gmail.com>
|
|
|
|
| |
Rework of the closed pull request #768
|
|
|
|
|
|
|
|
|
|
|
| |
I _think_ this represents some of the "best practices" for exporting
targets. They'll be available in a `googletest::` namespace (e.g.
`googletest::gmock`) with non-namespaced `ALIAS` targets.
- Added GOOGLETEST_VERSION variable
- Use `CMakePackageConfigHelpers`, bump minimum CMake version to 2.8.8
Signed-off-by: Dakota Hawkins <dakotahawkins@gmail.com>
|
|\ |
|
| |
| |
| |
| | |
gmock/gtest_BINARY_DIR (#1717)
|
|/ |
|
|\ |
|
| | |
|
| |\ |
|
| | |\ |
|
| | | | |
|
| |\ \ \
| | | |/
| | |/| |
|
| | |/
| |/|
| | |
| | |
| | | |
change static_cast to ImplicitCast_ for consitency
fixes for building with path names containing spaces
|
|\ \ \
| | |/
| |/| |
|
| |/ |
|
|/
|
|
| |
test executable with both.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the user's cmakelists.txt first look for threads using
find_package(Threads), then set(gtest_disable_pthreads ON),
and then include googletest. GoogleTest will not look for
threads. But since they have already been found before in
user's cmakelists, it will use them regardless.
This helped me fix build issue in darktable-org/rawspeed
on windows/MSYS2, even though there are threads, and they
are usable, googletest build was failing with issues
about AutoHandle. I was first looking for threads, and only
then including googletest, so no matter the value of
gtest_disable_pthreads, it failed.
The other obvious solution is for user to first include
googletest, and only then look for threads by himself.
|
| |
|
|\
| |
| | |
Fix library install destinations
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Modify library install destinations to install .dll's to the correct
location (`bin`, not `lib`), and to install other artifacts to the
correct platform-dependent location by using GNUInstallDirs. This is
required for some distributions (e.g. Fedora) and will fix an issue that
otherwise requires those distributions to patch the upstream sources.
Also, add options to suppress installation, which may be useful for
projects that embed Google Test.
Since Google Test is trying to support archaic versions of CMake, a
brain-dead fallback (which requires that the user set either LIB_SUFFIX
or CMAKE_INSTALL_LIBDIR themselves) is included for versions that
predate GNUInstallDirs.
Fixes #1161.
Co-Authored-By: d3x0r <d3x0r@users.noreply.github.com>
|
|/ |
|
|\
| |
| | |
Add include dirs to targets if CMake version supports it
|
| | |
|
|/ |
|
| |
|
|
|