-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (21 loc) · 767 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
31 lines (21 loc) · 767 Bytes
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
cmake_minimum_required(VERSION 3.7)
project(example)
set(CMAKE_MODULE_PATH $ENV{CMAKEHELPERS_HOME}/cmake/Modules $ENV{STM32CMAKE_HOME}/cmake)
include(stm32f103c8t6)
include(stm32_project)
setup_stm32()
find_srcs()
####################################################################################################
# libopencm3 {
include(libopencm3)
include_directories(${libopencm3_INC_DIR})
link_directories(${libopencm3_LIB_DIR})
list(APPEND LIBS ${libopencm3_LIB_NAME})
# } libopencm3
####################################################################################################
# FreeRTOS {
include(freertos)
include_directories(${FREERTOS_INC_DIRS})
list(APPEND SOURCES ${FREERTOS_SOURCES})
# } FreeRTOS
build_exe(SRCS ${SOURCES} LIBS ${LIBS})