From c43df6e576e6b559fa3481e0ca9f6a1d783fc2c8 Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 10 Nov 2024 06:37:20 -0800 Subject: [PATCH] Setup `/src/CmakeLists.txt` for variable usage The cmake file in the source directory is now using the variable project name. --- src/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f9696af..e90472c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,3 +1,8 @@ -add_executable(main +add_executable(${PROJECT_NAME} main.c ) + +# Ensure the build rules are defined +set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".elf") + +