cmake: add integration tests, run them in CI

Add CMake test project consuming curl via these methods:
`FetchContent`, `add_subdirectory()`, `find_package()`.

Also:
- GHA/distcheck: run these tests in CI.
- cmakelint: exclude a warning for calling "wonky-cased" built-in
  CMake functions, such as `FetchContent_Declare()`.

Closes #16126
This commit is contained in:
Viktor Szakats 2025-01-29 14:18:35 +01:00
parent 2b9b3ec579
commit fb70812437
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
9 changed files with 197 additions and 5 deletions

6
.github/labeler.yml vendored
View file

@ -78,7 +78,8 @@ build:
plan9/**,\
projects/**,\
winbuild/**,\
lib/libcurl.def\
lib/libcurl.def,\
tests/cmake/**\
}"
CI:
@ -100,7 +101,8 @@ cmake:
**/CMakeLists.txt,\
CMake/**,\
docs/INSTALL-CMAKE.md,\
lib/curl_config.h.cmake\
lib/curl_config.h.cmake,\
tests/cmake/**\
}"
cmdline tool: