diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-04-14 13:52:19 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-04-14 13:52:19 +0200 |
| commit | eacc1becd1308a01a7ffcddf7c8910c8dc708939 (patch) | |
| tree | 37734261a71feef1e2ceb8816cb1ee630837eda9 /libs/acpi/CMakeLists.txt | |
| parent | 2f4591dbb173d602368437e1dd8c788b0bedd4aa (diff) | |
| download | teachos-eacc1becd1308a01a7ffcddf7c8910c8dc708939.tar.xz teachos-eacc1becd1308a01a7ffcddf7c8910c8dc708939.zip | |
acpi: begin test implementation
Diffstat (limited to 'libs/acpi/CMakeLists.txt')
| -rw-r--r-- | libs/acpi/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libs/acpi/CMakeLists.txt b/libs/acpi/CMakeLists.txt index c6e63b9..b8face4 100644 --- a/libs/acpi/CMakeLists.txt +++ b/libs/acpi/CMakeLists.txt @@ -27,3 +27,22 @@ target_sources("acpi" PUBLIC target_link_libraries("acpi" PUBLIC "libs::kstd" ) + +if(NOT CMAKE_CROSSCOMPILING) + add_executable("acpi_tests" + "acpi/pointers.test.cpp" + ) + + target_link_libraries("acpi_tests" PRIVATE + "Catch2::Catch2WithMain" + "libs::acpi" + ) + + set_target_properties("acpi_tests" PROPERTIES + C_CLANG_TIDY "" + CXX_CLANG_TIDY "" + EXCLUDE_FROM_ALL NO + ) + + catch_discover_tests("acpi_tests") +endif() |
