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