Merge branch 'dev_create_project' into develop

This commit is contained in:
chen
2026-07-02 08:22:14 +00:00
3 changed files with 27 additions and 30 deletions
+1 -30
View File
@@ -1,32 +1,3 @@
# Prerequisites
*.d
build
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
+5
View File
@@ -0,0 +1,5 @@
int main()
{
return 0;
}
+21
View File
@@ -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)