-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
31 lines (21 loc) · 1009 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
cmake_minimum_required(VERSION 3.17)
# Configure the toolchain file. Set before the project() line.
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_LIST_DIR}/.cmake/arm-cortex-gcc-toolchain.cmake)
# Configure C and C++ standards.
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
# Specify overall project name.
project(apps LANGUAGES C CXX ASM)
# Option to disable the generation of the MISRA Cppcheck targets. Override on the command
# line when CMake is called using the following parameter: -DMISRA_ENABLED=ON
option(MISRA_ENABLED "Configurable to enable/disable the MISRA Cppcheck target" OFF)
# Include the MicroTBX sources.
add_subdirectory(third_party/microtbx)
# Include the MicroTBX-Modbus sources.
add_subdirectory(third_party/microtbx-modbus)
# Include other third party components.
include("${CMAKE_SOURCE_DIR}/.cmake/FreeRTOS.cmake")
include("${CMAKE_SOURCE_DIR}/.cmake/CubeF0.cmake")
include("${CMAKE_SOURCE_DIR}/.cmake/CubeF4.cmake")
# Include the demos sources.
add_subdirectory(demos)