-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (24 loc) · 1.01 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.20)
# ---------------------------- Target Configuration ----------------------------
# Specify the target/project name
set(TARGET attiny-isp)
set(MCU attiny1607)
set(F_CPU 3300000)
set(TOOLCHAIN_USE_PYMCUPROG true)
# Specify the desired language standard
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)
#Include the toolchain. If a device pack is needed, keep this value to true.
# The device pack should be in a folder name 'device_pack'
set(TOOLCHAIN_NEED_DEVICE_PACK true)
include(cmake/Toolchain.cmake)
# ----------------------------------- Target -----------------------------------
project(lab4)
file(GLOB SOURCES src/*.c)
configure_target(${TARGET} ${SOURCES})
# Specify own definitions, include directories and libraries here. The
# AVRToolChain.cmake file already specifies a bunch of standard compile options
# and definitions
# target_compile_definitions(${TARGET} ...)
target_include_directories(${TARGET} PRIVATE include src)
target_link_libraries(${TARGET} PRIVATE m)