-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
67 lines (56 loc) · 4.14 KB
/
CMakeLists.txt
File metadata and controls
67 lines (56 loc) · 4.14 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
cmake_minimum_required(VERSION 3.13)
project(Registers)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXECUTABLE_SUFFIX ".elf")
#set(CMAKE_VERBOSE_MAKEFILE on)
#set(CMAKE_COMPILER_PATH "Y:/SKolody_main/Mob_Point_Lev/Hydrastep/04_Design/03_Software/05_Source/_iar_tools/Embedded_Workbench/arm/bin")
#set(CMAKE_COMPILER_INCLUDE_PATH "Y:/SKolody_main/Mob_Point_Lev/Hydrastep/04_Design/03_Software/05_Source/_iar_tools/Embedded_Workbench/arm/inc/cpp")
#set(CMAKE_CXX_FLAGS_DEBUG "--debug --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --endian=little --cpu=Cortex-M4 -e --fpu=VFPv4_sp --c++ --no_exceptions --no_rtti")
#set(CMAKE_MAKE_PROGRAM "C:/Program Files (x86)/IBM/RationalSDLC/ClearCase/bin/clearmake.exe")
#set(CMAKE_C_COMPILER "${CMAKE_COMPILER_PATH}/iccarm.exe")
#set(CMAKE_CXX_COMPILER "${CMAKE_COMPILER_PATH}/iccarm.exe")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --endian=little --cpu=Cortex-M4 -e --fpu=VFPv4_sp --c++ --no_exceptions --no_rtti")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --redirect _Printf=_PrintfFullNoMb --redirect _Scanf=_ScanfFullNoMb --config ${CMAKE_SOURCE_DIR}/stm32f411xE.icf --semihosting --entry __iar_program_start --vfe --text_out locale")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --endian=little --cpu=Cortex-M4 -e --fpu=VFPv4_sp")
include_directories(${CMAKE_SOURCE_DIR}/AbstractHardware/Registers
${CMAKE_SOURCE_DIR}/AbstractHardware/Pin
${CMAKE_SOURCE_DIR}/AbstractHardware/Port
${CMAKE_SOURCE_DIR}/AbstractHardware/Timer
${CMAKE_SOURCE_DIR}/AbstractHardware/Timer/Stm32Fxx/STM32F411
${CMAKE_SOURCE_DIR}/AbstractHardware/Spi
${CMAKE_SOURCE_DIR}/AbstractHardware/Uart
${CMAKE_SOURCE_DIR}/AbstractHardware/Uart/Stm32Fxx
${CMAKE_SOURCE_DIR}/AbstractHardware/Uart/Stm32Fxx/STM32F411
${CMAKE_SOURCE_DIR}/AbstractHardware/InterruptHandler
${CMAKE_SOURCE_DIR}/AbstractHardware/SystemClock
${CMAKE_SOURCE_DIR}/AbstractHardware/EdpElink
${CMAKE_SOURCE_DIR}/AbstractHardware/Atomic
${CMAKE_SOURCE_DIR}/AbstractHardware/Adc
${CMAKE_SOURCE_DIR}/AbstractHardware/Smbus
${CMAKE_SOURCE_DIR}/AbstractHardware/Mlx90614
${CMAKE_SOURCE_DIR}/Application/Led
${CMAKE_SOURCE_DIR}/Application
${CMAKE_SOURCE_DIR}/Application/Gui
${CMAKE_SOURCE_DIR}/Application/Gui/Fonts
${CMAKE_SOURCE_DIR}/Common
${CMAKE_SOURCE_DIR}/Common/CriticalSection
${CMAKE_SOURCE_DIR}/Common/Observer
${CMAKE_SOURCE_DIR}/Common/RomObject
# ${CMAKE_SOURCE_DIR}/Tools/RegistersGenerator/Stm32F411
# ${CMAKE_SOURCE_DIR}/Tools/RegistersGenerator/Stm32F411/FieldValues
${CMAKE_SOURCE_DIR}/AbstractHardware/Registers/CortexM4
${CMAKE_SOURCE_DIR}/AbstractHardware/Registers/CortexM4/FieldValues
${CMAKE_SOURCE_DIR}/AbstractHardware/Registers/STM32F411
${CMAKE_SOURCE_DIR}/AbstractHardware/Registers/STM32F411/FieldValues
${CMAKE_SOURCE_DIR}/Common/PatternMatching
# ${CMAKE_SOURCE_DIR}/AbstractHardware/Flash/Stm32Fxx/STM32F411/Source
# ${CMAKE_SOURCE_DIR}/AbstractHardware/Flash/Stm32Fxx/STM32F303/Source
# ${CMAKE_SOURCE_DIR}/Tools/RegistersGenerator/Msp432P401Y
# ${CMAKE_SOURCE_DIR}/Tools/RegistersGenerator/Msp432P401Y/BitsField
# ${CMAKE_SOURCE_DIR}/AbstractHardware/Registers/STM32F411
# ${CMAKE_SOURCE_DIR}/AbstractHardware/Registers/STM32F411/BitsField
)
add_executable(Registers
main.cpp
startup.cpp
Common/Nv/cashednvdata.hpp Common/Nv/nvlist.hpp)