Skip to content

Commit

Permalink
add_subdirectory tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Oct 3, 2024
1 parent dd18a11 commit 3bc01a4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions cmake-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,33 @@ Additionally, certain variables must be forwarded to each test project CMake con

Checks that a project can include the SDK as a sub-project, via `add_subdirectory`.
This would be a likely use-case when the repo is a submodule of another project.

### cmake_projects/test_find_package

Checks that a project can include the SDK via `find_package(ldserverapi)`.
This would be a likely use-case if the SDK was installed on the system by the user.

**NOTE:** Requires SDK to be installed.

### cmake_projects/test_find_package_cpp

Checks that a C++ project can include the SDK via `find_package(ldserverapi)`.
Also checks that C++ bindings can be included without compilation issues.

**NOTE:** Requires SDK to be installed.

### cmake_projects/test_find_package_compatible_version

Checks that a project can include the SDK via `find_package(ldserverapi [version])`.
This would be a likely use-case if the user depends on a particular version of the SDK,
rather than accepting any version.

**NOTE:** Requires SDK to be installed.

### cmake_projects/test_find_package_incompatible_version

Checks that a project will *fail* to configure if `find_package(ldserverapi [version])`
is invoked with a version that isn't present on the system. The test uses a fictional
version `10.0.0`.

**NOTE:** Requires SDK to be installed.

0 comments on commit 3bc01a4

Please sign in to comment.