diff --git a/libc/src/string/CMakeLists.txt b/libc/src/string/CMakeLists.txt --- a/libc/src/string/CMakeLists.txt +++ b/libc/src/string/CMakeLists.txt @@ -34,6 +34,16 @@ libc.include.string ) +add_entrypoint_object( + strcmp + SRCS + strcmp.cpp + HDRS + strcmp.h + DEPENDS + libc.include.string +) + # Helper to define a function with multiple implementations # - Computes flags to satisfy required/rejected features and arch, # - Declares an entry point, diff --git a/libc/test/src/string/CMakeLists.txt b/libc/test/src/string/CMakeLists.txt --- a/libc/test/src/string/CMakeLists.txt +++ b/libc/test/src/string/CMakeLists.txt @@ -32,6 +32,16 @@ libc.src.string.strlen ) +add_libc_unittest( + strcmp_test + SUITE + libc_string_unittests + SRCS + strcmp_test.cpp + DEPENDS + libc.src.string.strcmp +) + # Tests all implementations that can run on the host. function(add_libc_multi_impl_test name) get_property(fq_implementations GLOBAL PROPERTY ${name}_implementations)