|
1 |
| -include(handle_sketch) |
| 1 | +# This file was autogenerated by cmake\scripts\cmake_easy_setup.py. |
| 2 | +# Use it in your CMake configuration by `include()`'ing it. |
| 3 | +# You can also copy it in your sketch's folder and edit it to fit your project. |
2 | 4 |
|
3 |
| -handle_sketch(BareMinimum ${CMAKE_CURRENT_BINARY_DIR}/BareMinimum.map ./BareMinimum.ino) |
| 5 | +cmake_minimum_required(VERSION 3.21) |
4 | 6 |
|
5 |
| -elf2bin(bin BareMinimum) |
6 |
| -elf2hex(hex BareMinimum) |
| 7 | +# STEP 1: set up bases of environment |
| 8 | +# ----------------------------------------------------------------------------- |
7 | 9 |
|
8 |
| -option(GRAPHING OFF "") |
9 |
| -if (${GRAPHING}) |
10 |
| - incgv(incntr.gv inctr.gv BareMinimum) |
11 |
| - gv2svg(inc_nontr incntr.gv) |
12 |
| - gv2svg(inc_tr inctr.gv) |
| 10 | +file(REAL_PATH "../../../../" CORE_PATH EXPAND_TILDE) |
| 11 | +file(TO_CMAKE_PATH "${CORE_PATH}" CORE_PATH) |
13 | 12 |
|
14 |
| - symgv(symfull.gv symsummary.gv ${CMAKE_CURRENT_BINARY_DIR}/BareMinimum.map) |
15 |
| - gv2svg(symfull symfull.gv) |
16 |
| - gv2svg(symsummary symsummary.gv) |
| 13 | +set(BOARDNAME "NUCLEO_F103RB") |
| 14 | + |
| 15 | +list(APPEND CMAKE_MODULE_PATH ${CORE_PATH}/cmake) |
| 16 | +set(CMAKE_TOOLCHAIN_FILE toolchain) |
| 17 | + |
| 18 | + |
| 19 | +# You may remove this block when using this file as the sketch's CMakeLists.txt |
| 20 | +if (NOT ${CMAKE_PARENT_LIST_FILE} STREQUAL ${CMAKE_CURRENT_LIST_FILE}) |
| 21 | + # When we are imported from the main CMakeLists.txt, we should stop here |
| 22 | + # not to interfere with the true build config. |
| 23 | + return() |
17 | 24 | endif()
|
| 25 | + |
| 26 | +project("BareMinimum_project") |
| 27 | + |
| 28 | +# STEP 2: configure the build |
| 29 | +# ----------------------------------------------------------------------------- |
| 30 | +include(set_board) |
| 31 | +set_board("${BOARDNAME}") |
| 32 | + |
| 33 | +include(overall_settings) |
| 34 | +overall_settings() |
| 35 | + |
| 36 | +include(build_sketch) |
| 37 | +build_sketch(TARGET "BareMinimum" |
| 38 | + SOURCES |
| 39 | + BareMinimum.ino |
| 40 | + DEPENDS |
| 41 | + CMSIS_DSP |
| 42 | + EEPROM |
| 43 | + IWatchdog |
| 44 | + Servo |
| 45 | + SoftwareSerial |
| 46 | + SPI |
| 47 | + Wire |
| 48 | +) |
0 commit comments