diff options
author | Gennadiy Civil <misterg@google.com> | 2019-06-13 17:49:42 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2019-06-13 17:49:42 (GMT) |
commit | 6b8c13815496df183e2247a9375c8dfedefdddc2 (patch) | |
tree | 44e40b78596709bdd899b03e1dbc4a24eacc42e6 /googletest/docs | |
parent | 26afdba792e52cac00ce11644c3c0b1789c40bf7 (diff) | |
download | googletest-6b8c13815496df183e2247a9375c8dfedefdddc2.zip googletest-6b8c13815496df183e2247a9375c8dfedefdddc2.tar.gz googletest-6b8c13815496df183e2247a9375c8dfedefdddc2.tar.bz2 |
Removing make and automake. The only supported build systems are Bazel internally and CMake community supported
Diffstat (limited to 'googletest/docs')
-rw-r--r-- | googletest/docs/Pkgconfig.md | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/googletest/docs/Pkgconfig.md b/googletest/docs/Pkgconfig.md index 8b4acda..9c4583d 100644 --- a/googletest/docs/Pkgconfig.md +++ b/googletest/docs/Pkgconfig.md @@ -47,55 +47,6 @@ goes for using `_LDFLAGS` over the more commonplace `_LIBRARIES`, which happens to discard `-L` flags and `-pthread`. -### Autotools ### - -Finding GoogleTest in Autoconf and using it from Automake is also fairly easy: - -In your `configure.ac`: - -``` -AC_PREREQ([2.69]) -AC_INIT([my_gtest_pkgconfig], [0.0.1]) -AC_CONFIG_SRCDIR([samples/sample3_unittest.cc]) -AC_PROG_CXX - -PKG_CHECK_MODULES([GTEST], [gtest_main]) - -AM_INIT_AUTOMAKE([foreign subdir-objects]) -AC_CONFIG_FILES([Makefile]) -AC_OUTPUT -``` - -and in your `Makefile.am`: - -``` -check_PROGRAMS = testapp -TESTS = $(check_PROGRAMS) - -testapp_SOURCES = samples/sample3_unittest.cc -testapp_CXXFLAGS = $(GTEST_CFLAGS) -testapp_LDADD = $(GTEST_LIBS) -``` - - -### Meson ### - -Meson natively uses pkgconfig to query dependencies: - -``` -project('my_gtest_pkgconfig', 'cpp', version : '0.0.1') - -gtest_dep = dependency('gtest_main') - -testapp = executable( - 'testapp', - files(['samples/sample3_unittest.cc']), - dependencies : gtest_dep, - install : false) - -test('first_and_only_test', testapp) -``` - ### Plain Makefiles ### |