File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,6 @@ add_executable(blink-rpi blink.ino)
99target_compile_options (blink-rpi PRIVATE -x c++)
1010target_compile_definitions (blink-rpi PUBLIC -DUSE_RPI)
1111target_link_libraries (blink-rpi arduino_emulator gpiod)
12+ if (USE_RPI)
13+ target_link_libraries (blink gpiod)
14+ endif (USE_RPI)
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ add_executable(i2c i2c.ino)
99target_compile_options (i2c PRIVATE -x c++)
1010target_link_libraries (i2c arduino_emulator)
1111if (USE_RPI)
12- target_link_libraries (blink gpiod)
12+ target_link_libraries (i2c gpiod)
1313endif (USE_RPI)
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ add_executable(spi spi.ino)
99target_compile_options (spi PRIVATE -x c++)
1010target_link_libraries (spi arduino_emulator)
1111if (USE_RPI)
12- target_link_libraries (blink gpiod)
12+ target_link_libraries (spi gpiod)
1313endif (USE_RPI)
You can’t perform that action at this time.
0 commit comments