kicad_generate_header( OUTPUT schematic.h NET schematic/intel-quark-d2000.net REF U1 IN_SOURCE) if (FALSE) # If you have Intel Quark 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(intel-quark-d2000 ALL DEPENDS schematic.h) endif ()