commit 2e95bebe8eb2b41f45cad5d73988c105e05f32c9 Author: chen Date: Thu Jul 2 08:15:54 2026 +0000 初始化仓库 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f433c3b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build + + diff --git a/App/Src/main.cpp b/App/Src/main.cpp new file mode 100644 index 0000000..e856fc1 --- /dev/null +++ b/App/Src/main.cpp @@ -0,0 +1,5 @@ +int main() +{ + + return 0; +} \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..71c1d1d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,21 @@ +# CMake最低版本 +cmake_minimum_required(VERSION 3.21) + +# 工程名、版本号、工程描述 +project(Motion + VERSION 0.1 + DESCRIPTION "Test") + +# C/C++ 标准版本 +set(CMAKE_C_STANDARD 11) +set(CMAKE_CXX_STANDARD 11) + +# 指定在当前目录或以下目录下通过命令(如 add_executable() )链接稍后创建的任何目标时要使用的库或标志 +LINK_LIBRARIES(m) + +# 工程源文件 +add_executable(${PROJECT_NAME} + ./App/Src/main.cpp) + +# 工程包含目录 +include_directories(./Inc) \ No newline at end of file