From 2e95bebe8eb2b41f45cad5d73988c105e05f32c9 Mon Sep 17 00:00:00 2001 From: chen Date: Thu, 2 Jul 2026 08:15:54 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BB=93=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ App/Src/main.cpp | 5 +++++ CMakeLists.txt | 21 +++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 .gitignore create mode 100644 App/Src/main.cpp create mode 100644 CMakeLists.txt 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