aboutsummaryrefslogtreecommitdiff
path: root/pw_perf_test/backend.cmake
diff options
context:
space:
mode:
authorEwout van Bekkum <ewout@google.com>2022-11-10 17:49:56 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-10 17:49:56 +0000
commit91a55b140dadae72ca8276cf38142425d30ef969 (patch)
tree7ad0358a44d2eeb5acce0cca73cc3595e4d06afa /pw_perf_test/backend.cmake
parent328902d5bd16a946e1c1495847b1dae4c8cbeb87 (diff)
downloadpigweed-91a55b140dadae72ca8276cf38142425d30ef969.tar.gz
cmake: Migrate all facades to use BACKEND variables
Migrates all CMake facades to use BACKEND variables which are defined in backend.cmake variables, similar to GN. Change-Id: I63dd1a81aa0a796366f6c78c4823e6081a6463f1 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/117413 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Diffstat (limited to 'pw_perf_test/backend.cmake')
-rw-r--r--pw_perf_test/backend.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/pw_perf_test/backend.cmake b/pw_perf_test/backend.cmake
new file mode 100644
index 000000000..f22336525
--- /dev/null
+++ b/pw_perf_test/backend.cmake
@@ -0,0 +1,18 @@
+# Copyright 2022 The Pigweed Authors
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+include_guard(GLOBAL)
+
+include($ENV{PW_ROOT}/pw_build/pigweed.cmake)
+
+pw_add_backend_variable(pw_perf_test.timer_BACKEND)