-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeConfig.cmake
142 lines (118 loc) · 4.75 KB
/
CMakeConfig.cmake
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
if("${SCCC_CONFIG}" STREQUAL "INNO")
set(BIN_SUFFIX "${BIN_SUFFIX}-inno")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_INNO=1")
set(SCCC_MCU MK60DZ10)
message("Config = INNO")
elseif("${SCCC_CONFIG}" STREQUAL "2014_CAMERA")
set(BIN_SUFFIX "${BIN_SUFFIX}-2014-camera")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2014_CAMERA=1")
set(SCCC_MCU MK60DZ10)
message("Config = 2014_CAMERA")
elseif("${SCCC_CONFIG}" STREQUAL "2014_CCD")
set(BIN_SUFFIX "${BIN_SUFFIX}-2014-ccd")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2014_CCD=1")
set(SCCC_MCU MK60DZ10)
message("Config = 2014_CCD")
elseif("${SCCC_CONFIG}" STREQUAL "2014_INNO")
set(BIN_SUFFIX "${BIN_SUFFIX}-2014-inno")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2014_INNO=1")
set(SCCC_MCU MK60DZ10)
message("Config = 2014_INNO")
elseif("${SCCC_CONFIG}" STREQUAL "2014_INNO_FX")
set(BIN_SUFFIX "${BIN_SUFFIX}-2014-inno-fx")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2014_INNO=1")
set(SCCC_MCU MK60F15)
message("Config = 2014_INNO_FX")
elseif("${SCCC_CONFIG}" STREQUAL "2014_MAGNETIC")
set(BIN_SUFFIX "${BIN_SUFFIX}-2014-magnetic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2014_MAGNETIC=1")
set(SCCC_MCU MK60DZ10)
message("Config = 2014_MAGNETIC")
elseif("${SCCC_CONFIG}" STREQUAL "VCAN_FX15DEV")
set(BIN_SUFFIX "${BIN_SUFFIX}-vcan-fx15dev")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_VCAN_FX15DEV=1")
set(SCCC_MCU MK60F15)
message("Config = VCAN_FX15DEV")
elseif("${SCCC_CONFIG}" STREQUAL "2015_CAMERA")
set(BIN_SUFFIX "${BIN_SUFFIX}-2015-camera")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2015_CAMERA=1")
set(SCCC_MCU MK60F15)
message("Config = 2015_CAMERA")
elseif("${SCCC_CONFIG}" STREQUAL "2015_MAGNETIC")
set(BIN_SUFFIX "${BIN_SUFFIX}-2015-magnetic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2015_MAGNETIC=1")
set(SCCC_MCU MK60F15)
message("Config = 2015_MAGNETIC")
elseif("${SCCC_CONFIG}" STREQUAL "2015_CCD")
set(BIN_SUFFIX "${BIN_SUFFIX}-2015-ccd")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2015_CCD=1")
set(SCCC_MCU MK60DZ10)
message("Config = 2015_CCD")
elseif("${SCCC_CONFIG}" STREQUAL "VCAN_Z4DEV")
set(BIN_SUFFIX "${BIN_SUFFIX}-vcan-z4dev")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKL26_VCAN_Z4DEV=1")
set(SCCC_MCU MKL26Z4)
message("Config = VCAN_Z4DEV")
elseif("${SCCC_CONFIG}" STREQUAL "2015_CCD2")
set(BIN_SUFFIX "${BIN_SUFFIX}-2015_ccd2")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKL26_2015_CCD2=1")
set(SCCC_MCU MKL26Z4)
message("Config = 2015_CCD2")
elseif("${SCCC_CONFIG}" STREQUAL "2015_M2")
set(BIN_SUFFIX "${BIN_SUFFIX}-2015_m2")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKL26_2015_M2=1")
set(SCCC_MCU MKL26Z4)
message("Config = 2015_M2")
elseif("${SCCC_CONFIG}" STREQUAL "2016_INNO")
set(BIN_SUFFIX "${BIN_SUFFIX}-2016-inno")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2016_INNO=1")
set(SCCC_MCU MK60F15)
message("Config = 2016_INNO")
elseif("${SCCC_CONFIG}" STREQUAL "2016_CAMERA")
set(BIN_SUFFIX "${BIN_SUFFIX}-2016-camera")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2016_CAMERA=1")
set(SCCC_MCU MK60F15)
message("Config = 2016_CAMERA")
elseif("${SCCC_CONFIG}" STREQUAL "2016_CCD")
set(BIN_SUFFIX "${BIN_SUFFIX}-2016-ccd")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2016_CCD=1")
set(SCCC_MCU MK60F15)
message("Config = 2016_CCD")
elseif("${SCCC_CONFIG}" STREQUAL "2016_CAMERA")
set(BIN_SUFFIX "${BIN_SUFFIX}-2016-camera")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2016_CAMERA=1")
set(SCCC_MCU MK60F15)
message("Config = 2016_CAMERA")
elseif("${SCCC_CONFIG}" STREQUAL "2016_RAIL")
set(BIN_SUFFIX "${BIN_SUFFIX}-2016-rail")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2016_RAIL=1")
set(SCCC_MCU MK60F15)
message("Config = 2016_RAIL")
elseif("${SCCC_CONFIG}" STREQUAL "2016_MAGNETIC")
set(BIN_SUFFIX "${BIN_SUFFIX}-2016-magnetic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2016_MAGNETIC=1")
set(SCCC_MCU MK60F15)
message("Config = 2016_MAGNETIC")
elseif("${SCCC_CONFIG}" STREQUAL "2016_MAGNETIC_YANG")
set(BIN_SUFFIX "${BIN_SUFFIX}-2016_magnetic_yang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2016_MAGNETIC_YANG=1")
set(SCCC_MCU MK60F15)
message("Config = 2016_MAGNETIC_YANG")
elseif("${SCCC_CONFIG}" STREQUAL "2017_INNO")
set(BIN_SUFFIX "${BIN_SUFFIX}-2017-inno")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2017_INNO=1")
set(SCCC_MCU MK60F15)
message("Config = 2017_INNO")
elseif("${SCCC_CONFIG}" STREQUAL "2017_CREATIVE")
set(BIN_SUFFIX "${BIN_SUFFIX}-2017-creative")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2017_CREATIVE=1")
set(SCCC_MCU MK60F15)
message("Config = 2017_CREATIVE")
elseif("${SCCC_CONFIG}" STREQUAL "2018_CAMERA")
set(BIN_SUFFIX "${BIN_SUFFIX}-2018-camera")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK60_2018_CAMERA=1")
set(SCCC_MCU MK60F15)
message("Config = 2018_CAMERA")
else()
message(FATAL_ERROR "Missing/Unknown config '${SCCC_CONFIG}' (set SCCC_CONFIG)")
endif()