diff options
author | Ewout van Bekkum <ewout@google.com> | 2022-01-20 14:35:01 -0800 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-01-21 03:46:17 +0000 |
commit | fbd7b00c3f7bb126b4a561541586bbf65e4eae1b (patch) | |
tree | 707ff5cb0e49a0f3e1ff5bd3f5282df49fa256c7 /pw_random | |
parent | cefc6a7c9b86421d63037dbb8219dd2ade91293c (diff) | |
download | pigweed-fbd7b00c3f7bb126b4a561541586bbf65e4eae1b.tar.gz |
pw_{build_info,persistent_ram,checksum,random}: Add CMake support
Change-Id: I24ca6b7fcd164073e134e3263e333fc3b325f2d7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/80223
Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Diffstat (limited to 'pw_random')
-rw-r--r-- | pw_random/CMakeLists.txt | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/pw_random/CMakeLists.txt b/pw_random/CMakeLists.txt index aabdd234b..776cccdac 100644 --- a/pw_random/CMakeLists.txt +++ b/pw_random/CMakeLists.txt @@ -14,9 +14,25 @@ include($ENV{PW_ROOT}/pw_build/pigweed.cmake) -pw_auto_add_simple_module(pw_random +pw_add_module_library(pw_random + HEADERS + public/pw_random/random.h + public/pw_random/xor_shift.h + PUBLIC_INCLUDES + public PUBLIC_DEPS pw_bytes - pw_span + pw_polyfill.cstddef + pw_polyfill.span pw_status ) + +pw_add_test(pw_random.xor_shift_star_test + SOURCES + xor_shift_test.cc + DEPS + pw_random + GROUPS + modules + pw_random +) |