Skip to content

Commit

Permalink
BIG UPDATE
Browse files Browse the repository at this point in the history
  • Loading branch information
kodt2 committed Dec 3, 2023
1 parent 6edaf04 commit 55667b9
Show file tree
Hide file tree
Showing 55 changed files with 5,499 additions and 58 deletions.
Empty file.
Binary file not shown.
Empty file.
Binary file added task1/CMakeProject1/.vs/CMakeProject1/v17/.wsuo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions task1/CMakeProject1/.vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": "x64 Debug"
}
20 changes: 20 additions & 0 deletions task1/CMakeProject1/.vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"OutputFoldersPerTargetSystem": {
"Локальный компьютер": [
"out\\build\\x64-debug",
"out\\install\\x64-debug",
"out\\build\\x64-release",
"out\\install\\x64-release",
"out\\build\\x86-debug",
"out\\install\\x86-debug",
"out\\build\\x86-release",
"out\\install\\x86-release"
]
},
"ExpandedNodes": [
"",
"\\CMakeProject1"
],
"SelectedNode": "\\CMakeProject1\\CMakeProject1.cpp",
"PreviewInSolutionExplorer": false
}
Binary file added task1/CMakeProject1/.vs/slnx.sqlite
Binary file not shown.
15 changes: 15 additions & 0 deletions task1/CMakeProject1/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# CMakeList.txt: файл проекта CMake верхнего уровня; проведите глобальную конфигурацию
# и включите сюда подпроекты.
#
cmake_minimum_required (VERSION 3.8)

# Enable Hot Reload for MSVC compilers if supported.
if (POLICY CMP0141)
cmake_policy(SET CMP0141 NEW)
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
endif()

project ("CMakeProject1")

# Включите подпроекты.
add_subdirectory ("CMakeProject1")
61 changes: 61 additions & 0 deletions task1/CMakeProject1/CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"version": 3,
"configurePresets": [
{
"name": "windows-base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "x64-debug",
"displayName": "x64 Debug",
"inherits": "windows-base",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "x64-release",
"displayName": "x64 Release",
"inherits": "x64-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "x86-debug",
"displayName": "x86 Debug",
"inherits": "windows-base",
"architecture": {
"value": "x86",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "x86-release",
"displayName": "x86 Release",
"inherits": "x86-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
]
}
12 changes: 12 additions & 0 deletions task1/CMakeProject1/CMakeProject1/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# CMakeList.txt: проект CMake для CMakeProject1; включите исходный код и определения,
# укажите здесь логику для конкретного проекта.
#

# Добавьте источник в исполняемый файл этого проекта.
add_executable (CMakeProject1 "CMakeProject1.cpp" "CMakeProject1.h")

if (CMAKE_VERSION VERSION_GREATER 3.12)
set_property(TARGET CMakeProject1 PROPERTY CXX_STANDARD 20)
endif()

# TODO: Добавьте тесты и целевые объекты, если это необходимо.
12 changes: 12 additions & 0 deletions task1/CMakeProject1/CMakeProject1/CMakeProject1.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// CMakeProject1.cpp: определяет точку входа для приложения.
//

#include "CMakeProject1.h"

using namespace std;

int main()
{
cout << "Hello CMake." << endl;
return 0;
}
8 changes: 8 additions & 0 deletions task1/CMakeProject1/CMakeProject1/CMakeProject1.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// CMakeProject1.h : включаемый файл для стандартных системных включаемых файлов
// или включаемые файлы для конкретного проекта.

#pragma once

#include <iostream>

// TODO: установите здесь ссылки на дополнительные заголовки, требующиеся для программы.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"requests":[{"kind":"cache","version":2},{"kind":"cmakeFiles","version":1},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1}]}
Loading

0 comments on commit 55667b9

Please sign in to comment.