feat: 新建CMakeLists.txt

This commit is contained in:
赵天浩
2026-04-21 02:45:16 +08:00
parent 165947784b
commit c3097faac1
3 changed files with 27 additions and 0 deletions

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