aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 2cb3286..daa2b4d 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -8,7 +8,11 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
if (NOT KicadUtils_FOUND)
message(FATAL_ERROR "The KicadUtils CMake package was not found. Did you pass the correct value for KicadUtils_DIR?\nIt should probably be something like KicadUtils_DIR=$HOME/opt/kicad-utils/lib/cmake/KicadUtils")
endif ()
+else ()
+ include(../cmake/kicad_generate_header.cmake)
+ list(APPEND KICAD_GEN_TEMPLATE_LIBS ${CMAKE_CURRENT_SOURCE_DIR}/../templates)
+ set(kicad_generate_header_cmd generate-header)
endif ()
-#add_subdirectory(arduino-led)
-#add_subdirectory(intel-quark-d2000)
+add_subdirectory(arduino-led)
+add_subdirectory(intel-quark-d2000)