pw_interrupt_cortex_m: Add CMake support

Change-Id: I2d1f038e88f9bac8b1e3354cf4f51672cb429fd1
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/79469
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f1a4e60..0f27885 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,8 +39,9 @@
 add_subdirectory(pw_file EXCLUDE_FROM_ALL)
 add_subdirectory(pw_function EXCLUDE_FROM_ALL)
 add_subdirectory(pw_hdlc EXCLUDE_FROM_ALL)
-add_subdirectory(pw_interrupt_zephyr EXCLUDE_FROM_ALL)
 add_subdirectory(pw_interrupt EXCLUDE_FROM_ALL)
+add_subdirectory(pw_interrupt_cortex_m EXCLUDE_FROM_ALL)
+add_subdirectory(pw_interrupt_zephyr EXCLUDE_FROM_ALL)
 add_subdirectory(pw_kvs EXCLUDE_FROM_ALL)
 add_subdirectory(pw_log_zephyr EXCLUDE_FROM_ALL)
 add_subdirectory(pw_log EXCLUDE_FROM_ALL)
diff --git a/pw_interrupt_cortex_m/CMakeLists.txt b/pw_interrupt_cortex_m/CMakeLists.txt
new file mode 100644
index 0000000..2845783
--- /dev/null
+++ b/pw_interrupt_cortex_m/CMakeLists.txt
@@ -0,0 +1,28 @@
+# 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($ENV{PW_ROOT}/pw_build/pigweed.cmake)
+
+pw_add_module_library(pw_interrupt_cortex_m.context
+  IMPLEMENTS_FACADES
+    pw_interrupt.context
+  HEADERS
+    public/pw_interrupt_cortex_m/context_inline.h
+    public_overrides/pw_interrupt_backend/context_inline.h
+  PUBLIC_INCLUDES
+    public
+    public_overrides
+  PUBLIC_DEPS
+    pw_preprocessor.arch
+)