From c3097faac1a3e434880ebe1ac213d0a13143df7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=A4=A9=E6=B5=A9?= Date: Tue, 21 Apr 2026 02:45:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=BB=BACMakeLists.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 16 ++++++++++++++++ fsm.c | 4 ++++ fsm.h | 7 +++++++ 3 files changed, 27 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 fsm.c create mode 100644 fsm.h diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..bcd6159 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.28) + +project(qffsm C) + +add_library(${PROJECT_NAME}) + +target_sources(${PROJECT_NAME} PRIVATE fsm.c) + +target_include_directories(${PROJECT_NAME} PUBLIC .) +target_compile_options(${PROJECT_NAME} PRIVATE + -ffunction-sections -fdata-sections + -Wall -Wextra +) +target_link_options(${PROJECT_NAME} PRIVATE + -Wl,--gc-sections +) \ No newline at end of file diff --git a/fsm.c b/fsm.c new file mode 100644 index 0000000..2c76aec --- /dev/null +++ b/fsm.c @@ -0,0 +1,4 @@ +// +// Created by Hydro on 2026/4/21. +// +#include "fsm.h" \ No newline at end of file diff --git a/fsm.h b/fsm.h new file mode 100644 index 0000000..58e52a6 --- /dev/null +++ b/fsm.h @@ -0,0 +1,7 @@ +// +// Created by Hydro on 2026/4/21. + +#ifndef QF_FSM_FSM_H +#define QF_FSM_FSM_H + +#endif //QF_FSM_FSM_H