generated from hulk/gd32e23x_template
修改项目名称
This commit is contained in:
parent
e27e17c544
commit
6fbd4d2241
@ -1,7 +1,9 @@
|
|||||||
cmake_minimum_required(VERSION 3.28)
|
cmake_minimum_required(VERSION 3.28)
|
||||||
include(cmake/toolchain.cmake)
|
include(cmake/toolchain.cmake)
|
||||||
|
|
||||||
project(gd32e23x_template)
|
set(PROJECT_NAME "XLSW_3DP_US-IR")
|
||||||
|
|
||||||
|
project(${PROJECT_NAME})
|
||||||
|
|
||||||
set(VERSION_MAJOR 0)
|
set(VERSION_MAJOR 0)
|
||||||
set(VERSION_MINOR 0)
|
set(VERSION_MINOR 0)
|
||||||
@ -39,11 +41,11 @@ set(TARGET_C_SRC
|
|||||||
${CMAKE_SOURCE_DIR}/src/fwdgt.c
|
${CMAKE_SOURCE_DIR}/src/fwdgt.c
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(gd32e23x_template ${TARGET_C_SRC})
|
add_executable(${PROJECT_NAME} ${TARGET_C_SRC})
|
||||||
|
|
||||||
target_link_libraries(gd32e23x_template GD32E23X_SDK)
|
target_link_libraries(${PROJECT_NAME} GD32E23X_SDK)
|
||||||
target_include_directories(gd32e23x_template PUBLIC inc)
|
target_include_directories(${PROJECT_NAME} PUBLIC inc)
|
||||||
|
|
||||||
# Generate .bin and .hex
|
# Generate .bin and .hex
|
||||||
generate_binary_file(gd32e23x_template)
|
generate_binary_file(${PROJECT_NAME})
|
||||||
generate_hex_file(gd32e23x_template)
|
generate_hex_file(${PROJECT_NAME})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user