aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/drv/arduino/cfg.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pbdrv/drv/arduino/cfg.cmake')
-rw-r--r--lib/pbdrv/drv/arduino/cfg.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/pbdrv/drv/arduino/cfg.cmake b/lib/pbdrv/drv/arduino/cfg.cmake
new file mode 100644
index 0000000..36716e3
--- /dev/null
+++ b/lib/pbdrv/drv/arduino/cfg.cmake
@@ -0,0 +1,7 @@
+if(NOT DEFINED ARDUINO)
+ return()
+endif()
+
+target_sources(pbdrv-mod PRIVATE "${CMAKE_CURRENT_LIST_DIR}/mod.cpp")
+target_link_arduino_libraries(pbdrv-mod core Wire)
+