File tree Expand file tree Collapse file tree 17 files changed +107
-36
lines changed Expand file tree Collapse file tree 17 files changed +107
-36
lines changed Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.5 )
1
+ cmake_minimum_required (VERSION 3.17 )
2
2
3
3
include (${CMAKE_CURRENT_SOURCE_DIR} /../../../hw/bsp/family_support.cmake )
4
4
5
5
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
6
6
family_get_project_name (PROJECT ${CMAKE_CURRENT_LIST_DIR} )
7
7
8
- project (${PROJECT} )
8
+ project (${PROJECT} C CXX ASM )
9
9
10
10
# Checks this example is valid for the family and initializes the project
11
11
family_initialize_project (${PROJECT} ${CMAKE_CURRENT_LIST_DIR} )
12
12
13
+ # Espressif has its own cmake build system
14
+ if (FAMILY STREQUAL "espressif" )
15
+ return ()
16
+ endif ()
17
+
13
18
add_executable (${PROJECT} )
14
19
15
20
# Example source
16
21
target_sources (${PROJECT} PUBLIC
17
22
${CMAKE_CURRENT_SOURCE_DIR} /src/main.c
18
23
${CMAKE_CURRENT_SOURCE_DIR} /src/usb_descriptors.c
19
- )
24
+ )
20
25
21
26
# Example include
22
27
target_include_directories (${PROJECT} PUBLIC
23
28
${CMAKE_CURRENT_SOURCE_DIR} /src
24
- )
29
+ )
25
30
26
31
# Configure compilation flags and libraries for the example... see the corresponding function
27
32
# in hw/bsp/FAMILY/family.cmake for details.
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.5 )
1
+ cmake_minimum_required (VERSION 3.17 )
2
2
3
3
include (${CMAKE_CURRENT_SOURCE_DIR} /../../../hw/bsp/family_support.cmake )
4
4
5
5
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
6
6
family_get_project_name (PROJECT ${CMAKE_CURRENT_LIST_DIR} )
7
7
8
- project (${PROJECT} )
8
+ project (${PROJECT} C CXX ASM )
9
9
10
10
# Checks this example is valid for the family and initializes the project
11
11
family_initialize_project (${PROJECT} ${CMAKE_CURRENT_LIST_DIR} )
12
12
13
+ # Espressif has its own cmake build system
14
+ if (FAMILY STREQUAL "espressif" )
15
+ return ()
16
+ endif ()
17
+
13
18
add_executable (${PROJECT} )
14
19
15
20
# Example source
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.5 )
1
+ cmake_minimum_required (VERSION 3.17 )
2
2
3
3
include (${CMAKE_CURRENT_SOURCE_DIR} /../../../hw/bsp/family_support.cmake )
4
4
5
5
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
6
6
family_get_project_name (PROJECT ${CMAKE_CURRENT_LIST_DIR} )
7
7
8
- project (${PROJECT} )
8
+ project (${PROJECT} C CXX ASM )
9
9
10
10
# Checks this example is valid for the family and initializes the project
11
11
family_initialize_project (${PROJECT} ${CMAKE_CURRENT_LIST_DIR} )
12
12
13
+ # Espressif has its own cmake build system
14
+ if (FAMILY STREQUAL "espressif" )
15
+ return ()
16
+ endif ()
17
+
13
18
add_executable (${PROJECT} )
14
19
15
20
# Example source
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.5 )
1
+ cmake_minimum_required (VERSION 3.17 )
2
2
3
3
include (${CMAKE_CURRENT_SOURCE_DIR} /../../../hw/bsp/family_support.cmake )
4
4
5
5
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
6
6
family_get_project_name (PROJECT ${CMAKE_CURRENT_LIST_DIR} )
7
7
8
- project (${PROJECT} )
8
+ project (${PROJECT} C CXX ASM )
9
9
10
10
# Checks this example is valid for the family and initializes the project
11
11
family_initialize_project (${PROJECT} ${CMAKE_CURRENT_LIST_DIR} )
12
12
13
+ # Espressif has its own cmake build system
14
+ if (FAMILY STREQUAL "espressif" )
15
+ return ()
16
+ endif ()
17
+
13
18
add_executable (${PROJECT} )
14
19
15
20
# Example source
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.5 )
1
+ cmake_minimum_required (VERSION 3.17 )
2
2
3
3
include (${CMAKE_CURRENT_SOURCE_DIR} /../../../hw/bsp/family_support.cmake )
4
4
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.5 )
1
+ cmake_minimum_required (VERSION 3.17 )
2
2
3
3
include (${CMAKE_CURRENT_SOURCE_DIR} /../../../hw/bsp/family_support.cmake )
4
4
5
5
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
6
6
family_get_project_name (PROJECT ${CMAKE_CURRENT_LIST_DIR} )
7
7
8
- project (${PROJECT} )
8
+ project (${PROJECT} C CXX ASM )
9
9
10
10
# Checks this example is valid for the family and initializes the project
11
11
family_initialize_project (${PROJECT} ${CMAKE_CURRENT_LIST_DIR} )
12
+ # Espressif has its own cmake build system
13
+ if (FAMILY STREQUAL "espressif" )
14
+ return ()
15
+ endif ()
12
16
13
17
add_executable (${PROJECT} )
14
18
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.5 )
1
+ cmake_minimum_required (VERSION 3.17 )
2
2
3
3
include (${CMAKE_CURRENT_SOURCE_DIR} /../../../hw/bsp/family_support.cmake )
4
4
5
5
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
6
6
family_get_project_name (PROJECT ${CMAKE_CURRENT_LIST_DIR} )
7
7
8
- project (${PROJECT} )
8
+ project (${PROJECT} C CXX ASM )
9
9
10
10
# Checks this example is valid for the family and initializes the project
11
11
family_initialize_project (${PROJECT} ${CMAKE_CURRENT_LIST_DIR} )
12
+ # Espressif has its own cmake build system
13
+ if (FAMILY STREQUAL "espressif" )
14
+ return ()
15
+ endif ()
12
16
13
17
add_executable (${PROJECT} )
14
18
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.5 )
1
+ cmake_minimum_required (VERSION 3.17 )
2
2
3
3
include (${CMAKE_CURRENT_SOURCE_DIR} /../../../hw/bsp/family_support.cmake )
4
4
5
5
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
6
6
family_get_project_name (PROJECT ${CMAKE_CURRENT_LIST_DIR} )
7
7
8
- project (${PROJECT} )
8
+ project (${PROJECT} C CXX ASM )
9
9
10
10
# Checks this example is valid for the family and initializes the project
11
11
family_initialize_project (${PROJECT} ${CMAKE_CURRENT_LIST_DIR} )
12
+ # Espressif has its own cmake build system
13
+ if (FAMILY STREQUAL "espressif" )
14
+ return ()
15
+ endif ()
12
16
13
17
add_executable (${PROJECT} )
14
18
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.5 )
1
+ cmake_minimum_required (VERSION 3.17 )
2
2
3
3
include (${CMAKE_CURRENT_SOURCE_DIR} /../../../hw/bsp/family_support.cmake )
4
4
5
5
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
6
6
family_get_project_name (PROJECT ${CMAKE_CURRENT_LIST_DIR} )
7
7
8
- project (${PROJECT} )
8
+ project (${PROJECT} C CXX ASM )
9
9
10
10
# Checks this example is valid for the family and initializes the project
11
11
family_initialize_project (${PROJECT} ${CMAKE_CURRENT_LIST_DIR} )
12
+ # Espressif has its own cmake build system
13
+ if (FAMILY STREQUAL "espressif" )
14
+ return ()
15
+ endif ()
12
16
13
17
add_executable (${PROJECT} )
14
18
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.5 )
1
+ cmake_minimum_required (VERSION 3.17 )
2
2
3
3
include (${CMAKE_CURRENT_SOURCE_DIR} /../../../hw/bsp/family_support.cmake )
4
4
5
5
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
6
6
family_get_project_name (PROJECT ${CMAKE_CURRENT_LIST_DIR} )
7
7
8
- project (${PROJECT} )
8
+ project (${PROJECT} C CXX ASM )
9
9
10
10
# Checks this example is valid for the family and initializes the project
11
11
family_initialize_project (${PROJECT} ${CMAKE_CURRENT_LIST_DIR} )
12
+ # Espressif has its own cmake build system
13
+ if (FAMILY STREQUAL "espressif" )
14
+ return ()
15
+ endif ()
12
16
13
17
add_executable (${PROJECT} )
14
18
You can’t perform that action at this time.
0 commit comments