-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (25 loc) · 999 Bytes
/
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
# Author: Mohd Ramza <[email protected]>
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
set(BOARD_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
set(BOARD com_f103c8)
set(CURR ${CMAKE_CURRENT_SOURCE_DIR})
list(APPEND DTC_OVERLAY_FILE ${CURR}/boards/stm32f103c8_board.overlay)
message(status ${DTC_OVERLAY_FILE})
# set(BOARD qemu_x86)
# set(BOARD_FLASH_RUNNER jlink)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(stm32f1_project)
# add top source files here
set(SOURCES src/main.c
)
# likely not need to add a .h include here as most modules will go into its own sub directory
set(INCLUDES)
target_include_directories(app PRIVATE ${INCLUDES})
target_sources(app PRIVATE ${SOURCES})
add_subdirectory(src/MANAGER/THREAD_MGR)
add_subdirectory(src/MANAGER/BLINK_MGR)
# Specific part for documentation sbuild. You should provide -DBUILD_DOC=1 in CMake call to let it build documentation.
if(BUILD_DOC)
include(doc/build_doxygen_documentation.cmake)
endif()