feat: 实现状态机的基本功能 #2

Merged
7iwind merged 8 commits from develop into main 2026-04-21 15:08:14 +08:00
3 changed files with 27 additions and 0 deletions
Showing only changes of commit c3097faac1 - Show all commits

16
CMakeLists.txt Normal file
View File

@@ -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
)

4
fsm.c Normal file
View File

@@ -0,0 +1,4 @@
//
// Created by Hydro on 2026/4/21.
//
#include "fsm.h"

7
fsm.h Normal file
View File

@@ -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