# If we're not included by the msgflo project, find the sources the normal way. This is what you should do in your # application if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) cmake_minimum_required(VERSION 3.5) project(kicad_utils_examples) find_package(KicadUtils) 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 () set(KicadUtilsPyDir "${CMAKE_CURRENT_LIST_DIR}/../py") include(../cmake/kicad_generate_header.cmake) include(../cmake/kicad_pcb_plot.cmake) # include(../cmake/kicad_schematic_plot.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)