Skip to content

Commit

Permalink
feat(project): update project template
Browse files Browse the repository at this point in the history
  • Loading branch information
1nchy committed Aug 24, 2024
1 parent 0b9c329 commit f5e3d15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cmake-project-template",
"displayName": "cmake project template",
"description": "the template of cmake project and third library",
"version": "1.0.0",
"version": "1.2.0",
"publisher": "1nchy",
"engines": {
"vscode": "^1.92.0"
Expand Down
5 changes: 3 additions & 2 deletions src/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,11 @@ async function create_project_file(project_name: string, workspace_uri: vscode.U
_M_mkdir(workspace_uri, ['src']);
_M_mkdir(workspace_uri, ['third']);
_M_mkdir(workspace_uri, ['cmake']);
_M_mkdir(workspace_uri, ['lib']);
await _M_touch_from_repo(workspace_uri, 'project_template', ['.gitignore']);
await _M_touch_from_repo(workspace_uri, 'project_template', ['CMakeLists.txt']);
await _M_touch_from_repo(workspace_uri, 'project_template', ['src', 'CMakeLists.txt']);
await _M_touch_from_repo(workspace_uri, 'project_template', ['third', 'CMakeLists.txt']);
await _M_touch_from_repo(workspace_uri, 'project_template', ['cmake', 'Findthird_lib.cmake']);
await _M_touch_from_repo(workspace_uri, 'project_template', ['cmake', 'Findheader_only_third_lib.cmake']);
_M_touch(workspace_uri, ['README.md']);
_M_touch(workspace_uri, ['main.cpp']);

Expand Down

0 comments on commit f5e3d15

Please sign in to comment.