diff options
Diffstat (limited to 'examples/arduino-led/CMakeLists.txt')
-rw-r--r-- | examples/arduino-led/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/arduino-led/CMakeLists.txt b/examples/arduino-led/CMakeLists.txt new file mode 100644 index 0000000..7bd82af --- /dev/null +++ b/examples/arduino-led/CMakeLists.txt @@ -0,0 +1,14 @@ +kicad_gen( + TARGET schematic.h + NET schematic/arduino-led.net + REF U1 + IN_SOURCE) + +if (FALSE) + # If you have Arduino support for CMake something like this would work: + + #add_executable(arduino-led arduino-led.ino schematic.h) + #target_include_directories(arduino-led PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/kicad-include) +else () + add_custom_target(arduino-led ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/schematic.h) +endif () |