From 6fbd4d22416906d4859ad0eacb124ca14b13cef8 Mon Sep 17 00:00:00 2001 From: yelvlab Date: Tue, 31 Dec 2024 21:19:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed06994..a88e3f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,9 @@ cmake_minimum_required(VERSION 3.28) include(cmake/toolchain.cmake) -project(gd32e23x_template) +set(PROJECT_NAME "XLSW_3DP_US-IR") + +project(${PROJECT_NAME}) set(VERSION_MAJOR 0) set(VERSION_MINOR 0) @@ -39,11 +41,11 @@ set(TARGET_C_SRC ${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_include_directories(gd32e23x_template PUBLIC inc) +target_link_libraries(${PROJECT_NAME} GD32E23X_SDK) +target_include_directories(${PROJECT_NAME} PUBLIC inc) # Generate .bin and .hex -generate_binary_file(gd32e23x_template) -generate_hex_file(gd32e23x_template) +generate_binary_file(${PROJECT_NAME}) +generate_hex_file(${PROJECT_NAME})