kicad_generate_header( OUTPUT 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 ()