初始CMake环境测试

This commit is contained in:
2025-11-04 20:45:26 +08:00
parent 3a0e24540b
commit 7240a40b7c
5 changed files with 27 additions and 1 deletions

3
.gitignore vendored
View File

@@ -32,3 +32,6 @@
*.out *.out
*.app *.app
# Target files
build/*
.cache

7
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,7 @@
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": []
}

5
CMakeLists.txt Normal file
View File

@@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 3.28.3)
project(cpp_course)
add_executable(c1_1 src/c1_1.cpp)

View File

@@ -1,3 +1,7 @@
# cpp_course # cpp_course
C++笔记与教程仓库 C++笔记与教程仓库
## 前言
本仓库旨在为新入门 C++ 的同学提供一个良好的开发环境与工程示例。与学校课程不同的是,本仓库中的示例使用了许多现代工具和代码工程管理方法,同时结合 Git 使用,力图通过环境配置让各位同学了解现代软件开发方法与战队的项目管理方法。

7
src/c1_1.cpp Normal file
View File

@@ -0,0 +1,7 @@
#include <iostream>
int main(void)
{
std :: cout << "Hello World";
return 0;
}