aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* [googletest] Output skip messageAlexey Spiridonov2019-10-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | Closes #2208 Previously, skip messages were invisible, so debugging skips was hard. Now we have this: ``` $ ./googletest/gtest_skip_test Running main() from /home/lesha/github/snarkmaster/googletest/googletest/src/gtest_main.cc [==========] Running 3 tests from 2 test suites. [----------] Global test environment set-up. [----------] 1 test from SkipTest [ RUN ] SkipTest.DoesSkip /home/lesha/github/snarkmaster/googletest/googletest/test/gtest_skip_test.cc:38: Skipped skipping single test [ SKIPPED ] SkipTest.DoesSkip (0 ms) [----------] 1 test from SkipTest (1 ms total) ... ```
* Correct CMake to cover CygwinAdam Badura2019-07-271-1/+1
|
* Fix typo introduced in 63be3dcc245 (maintaners -> maintainers)Enji Cooper2019-05-191-1/+1
| | | | Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* Googletest exportmisterg2019-05-031-0/+3
| | | | | | Clarify build system support - CMake and automake community supported PiperOrigin-RevId: 245821927
* Fix compilation on CentOS 7Sylvestre Gallon2019-04-261-1/+1
|
* Merge pull request #2203 from ngie-eign:issue-2189Gennadiy Civil2019-04-031-0/+3
|\ | | | | | | PiperOrigin-RevId: 241803437
| * Handle GTEST_SKIP() when calling `Environment::SetUp()`Enji Cooper2019-03-301-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gtest prior to this change would completely ignore `GTEST_SKIP()` if called in `Environment::SetUp()`, instead of bailing out early, unlike `Test::SetUp()`, which would cause the tests themselves to be skipped. The only way (prior to this change) to skip the tests would be to trigger a fatal error via `GTEST_FAIL()`. Desirable behavior, in this case, when dealing with `Environment::SetUp()` is to check for prerequisites on a system (example, kernel supports a particular featureset, e.g., capsicum), and skip the tests. The alternatives prior to this change would be undesirable: - Failing sends the wrong message to the test user, as the result of the tests is indeterminate, not failed. - Having to add per-test class abstractions that override `SetUp()` to test for the capsicum feature set, then skip all of the tests in their respective SetUp fixtures, would be a lot of human and computational work; checking for the feature would need to be done for all of the tests, instead of once for all of the tests. For those reasons, making `Environment::SetUp()` handle `GTEST_SKIP()`, by not executing the testcases, is the most desirable solution. In order to properly diagnose what happened when running the tests if they are skipped, print out the diagnostics in an ad hoc manner. Update the documentation to note this change and integrate a new test, gtest_skip_in_environment_setup_test, into the test suite. This change addresses #2189. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* Set gtest version correctly for older cmake versionsKnut Omang2019-02-111-0/+4
| | | | Signed-off-by: Knut Omang <knut.omang@oracle.com>
* Googletest exportmisterg2018-10-291-1/+0
| | | | | | Remove linked_ptr and use std::shared_ptr instead PiperOrigin-RevId: 219129336
* Googletest exportAbseil Team2018-10-261-0/+1
| | | | | | Remove linked_ptr and use std::shared_ptr instead PiperOrigin-RevId: 218618184
* Googletest exportmisterg2018-10-261-1/+0
| | | | | | Remove linked_ptr and use std::shared_ptr instead PiperOrigin-RevId: 218571466
* Unconditionally use std::tuple.Abseil Team2018-10-091-27/+0
| | | | | | Remove all mention of TR1 tuple and our own implementation of tuple. PiperOrigin-RevId: 216395043
* Merge c798e39a4f96f5a985126cc3fab4738b6412cfc1 into ↵Matthieu2018-10-021-0/+14
| | | | | | | | e93da23920e5b6887d6a6a291c3a59f83f5b579e Closes #1836 PiperOrigin-RevId: 215461025
* Merge 2ce0685f76a4db403b7b2650433a584c150f2108 into ↵Arseny Aprelev2018-10-021-0/+1
| | | | | | | | | 75e834700d19aa373b428c7c746f951737354c28 Closes #1544 With refinements and changes PiperOrigin-RevId: 215273083
* Use `$<INSTALL_PREFIX>` in `target_include_directories`Dakota Hawkins2018-08-241-2/+2
| | | | | | | | | | | | | | | 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>
* Install CMake export filesStefano Soffia2018-08-221-48/+29
| | | | Rework of the closed pull request #768
* Improve CMake exported targets.Dakota Hawkins2018-08-211-4/+27
| | | | | | | | | | | 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>
* Merge branch 'master' into cleanup-cmakeGennadiy Civil2018-08-151-46/+46
|\
| * Change location of generated pkg-config files from CMAKE_BINARY_DIR to ↵Elias Daler2018-08-131-3/+3
| | | | | | | | gmock/gtest_BINARY_DIR (#1717)
| * one more fixGennadiy Civil2018-08-021-1/+1
| |
| * more fixesGennadiy Civil2018-08-021-1/+1
| |
| * add --no_stacktrace_support for json-output-unittestGennadiy Civil2018-08-021-1/+1
| |
| * cmake test fixesGennadiy Civil2018-08-021-12/+12
| |
| * cmake fixesGennadiy Civil2018-08-021-2/+2
| |
| * cmake tests changesGennadiy Civil2018-08-021-12/+12
| |
| * cleaning up and adding test changes to CMakeGennadiy Civil2018-08-021-4/+4
| |
| * Corresponding CMake ChangesGennadiy Civil2018-08-011-12/+12
| |
| * Pass the --no_stacktrace_support argument to the CMake testsDerek Mauro2018-07-101-2/+2
| | | | | | | | | | This does the same thing to the CMake tests that is done to the Bazel tests, and now makes the CMake tests pass.
* | Clean up cache non-advanced variable for subprojectHenry Fredrick Schreiner2018-04-051-5/+20
|/
* Merge branch 'master' into jsonGennadiy Civil2018-02-281-2/+0
|\
| * Use DEBUG_POSTFIX instead of CMAKE_DEBUG_POSTFIXDavid Neto2018-02-261-2/+0
| | | | | | | | | | | | | | | | | | | | | | CMAKE_DEBUG_POSTFIX is a global configuration parameter, and changing it pollutes the configuration space for other projects that enclose this project. DEBUG_POSTFIX is better to use since it is a target-specific poperty. Fixes #1334 Fixes #1268
* | Support JSON output format in addition to XMLPetr Hosek2018-02-281-0/+2
|/ | | | | | This change allows emitting output in JSON format in addition to the already supported XML format. The implementation as well as the file structure is intentionally modelled after the XML one.
* remove implicit castsBryan Zimmerman2017-12-111-1/+0
|
* Merge branch 'master' into masterbryanzim2017-12-111-2/+2
|\
| * Merge branch 'master' into use-system-includesGennadiy Civil2017-12-081-0/+2
| |\
| * | make includes systemSam Lunt2017-11-271-2/+2
| | |
* | | Merge branch 'master' into masterbryanzim2017-12-081-1/+2
|\ \ \ | | |/ | |/|
| * | Improved description of VS std::tuple supportWojciech Mamrak2017-12-071-0/+2
| |/
* / fix for VS2017 deprecation of ::tr1::tupleBryan Zimmerman2017-10-271-8/+10
|/ | | | | change static_cast to ImplicitCast_ for consitency fixes for building with path names containing spaces
* Add explicit `CMAKE_DEBUG_POSTFIX` optionly20482017-09-141-0/+2
| | | Enable generating different library name to be compatible with CMake's `FindGTest`.
* remove obsolete link_directories commandHerbert Thielen2017-09-051-3/+0
| | | | | | | | It's not necessary, as the target_link_libraries command contains an absolute path already, and the path given doesn't exist anymore, leading only to linker warnings like: ld: warning: directory not found for option '-L/Users/travis/build/google/googletest/build/googlemock/gtest/src'
* Adding CMake visibility policy settingHenry Schreiner2017-08-181-0/+4
| | | This policy setting will silence a warning when using with a visibility settings on targets. Due to the forced `cmake_minimum_version`, policy settings in CMakeLists calling this one (including the main CMakeLists) are lost, forcing the change to be made here.
* Add support for pkgconfigDavid Seifert2017-08-141-1/+18
|
* Merge pull request #1160 from mwoehlke-kitware/honor-lib_suffixGennadiy Civil2017-08-111-4/+8
|\ | | | | Fix library install destinations
| * Fix library install destinationsMatthew Woehlke2017-08-091-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | 2.6.4 is the minimum CMake version, so enforce it (#656)Craig Scott2016-12-171-1/+1
|/
* Add include dirs to targets if CMake version supports itCraig Scott2015-12-061-0/+8
|
* Add CMake install rules for gtest libraries and headersTaylor Braun-Jones2015-11-231-0/+8
|
* Add an option to enable building with -fvisibility=hidden.Dominic Meiser2015-10-291-0/+10
| | | | | | When this option is set gtest itself is built with -fvisibility=hidden with gcc and clang. This replicates MSVC's default behaviour with gcc and clang.
* Move everything in googletest into googletest/googletestBilly Donahue2015-08-251-0/+260