sandboxed-api/cmake
Christian Blichmann 41e0ca0a68 CMake: Use min v3.13 and FetchContent
This updates the mininum required version of CMake to 3.13, which is
present in Debian Buster.

At the same time, move all of our dependency handling to use
`FetchContent_Declare()`, `FetchContent_Populate()` and
`FetchContent_MakeAvailable()`. Since the latter was ony introduced in
3.14, provide a simple "polyfill" implementation for that.

As an added benefit, the configure step for libffi and libunwind will
now not be re-run every time the `CMakeLists.txt` changes.

Other changes:
- Explicitly spell out that we're testing up to 3.22 in
  `cmake_minimum_version()`
- Rename `check_target()` to `sapi_check_target()` to avoid conflicts
  with Abseil.
2022-01-25 13:59:45 +01:00
..
modules Update Copybara config to add files from #83 2021-02-04 03:07:12 -08:00
abseil-cpp.cmake CMake: Use min v3.13 and FetchContent 2022-01-25 13:59:45 +01:00
benchmark.cmake CMake: Use min v3.13 and FetchContent 2022-01-25 13:59:45 +01:00
gflags.cmake CMake: Use min v3.13 and FetchContent 2022-01-25 13:59:45 +01:00
glog.cmake CMake: Use min v3.13 and FetchContent 2022-01-25 13:59:45 +01:00
googletest.cmake CMake: Use min v3.13 and FetchContent 2022-01-25 13:59:45 +01:00
libcap_capability.h.in Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
libcap.cmake CMake: Use min v3.13 and FetchContent 2022-01-25 13:59:45 +01:00
libffi.cmake CMake: Use min v3.13 and FetchContent 2022-01-25 13:59:45 +01:00
libunwind.cmake CMake: Use min v3.13 and FetchContent 2022-01-25 13:59:45 +01:00
protobuf.cmake CMake: Use min v3.13 and FetchContent 2022-01-25 13:59:45 +01:00
sandbox2.pc.in Add pkg-config files generation. 2020-12-16 06:46:03 -08:00
sapi.pc.in Add pkg-config files generation. 2020-12-16 06:46:03 -08:00
SapiBuildDefs.cmake Fix dependencies in add_sapi_library 2021-01-06 01:48:55 -08:00
SapiDeps.cmake CMake: Use min v3.13 and FetchContent 2022-01-25 13:59:45 +01:00
SapiFetchContent.cmake CMake: Use min v3.13 and FetchContent 2022-01-25 13:59:45 +01:00
SapiOptions.cmake CMake build: Skip examples/tests when used via add_subdirectory 2022-01-18 03:23:16 -08:00
SapiUtil.cmake CMake build improvements 2020-09-23 06:43:01 -07:00
zlib.cmake CMake: Use min v3.13 and FetchContent 2022-01-25 13:59:45 +01:00