[libc] Add a convenience CMake function `add_unittest_framework_library`.
authorSiva Chandra Reddy <sivachandra@google.com>
Tue, 16 May 2023 17:19:10 +0000 (17:19 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Wed, 17 May 2023 21:13:50 +0000 (21:13 +0000)
commit4dc205f016e3dd2eb1182886a77676f24e39e329
tree0bdb52a8263f8fd13d5d3f64ce2ca15359e9c0f4
parent42987dfa3a85e0cec987b9f07a8ffe61073ddc52
[libc] Add a convenience CMake function `add_unittest_framework_library`.

This function is used to add unit test and hermetic test framework libraries.
It avoids the duplicated code to add compile options to each every test
framework libraries.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D150727
libc/cmake/modules/LLVMLibCTestRules.cmake
libc/test/UnitTest/CMakeLists.txt
libc/utils/MPFRWrapper/CMakeLists.txt