initial commit
This commit is contained in:
4
.gitignore
vendored
Executable file
4
.gitignore
vendored
Executable file
@@ -0,0 +1,4 @@
|
||||
build
|
||||
.cache
|
||||
subprojects/*
|
||||
!subprojects/catch2.wrap
|
||||
3
README.md
Executable file
3
README.md
Executable file
@@ -0,0 +1,3 @@
|
||||
**матрица** - это система...
|
||||
|
||||
Это с++ реализация нейронки по определеницю циферек по картинкам
|
||||
6
bin/main.cpp
Normal file
6
bin/main.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <hack/logger/logger.hpp>
|
||||
|
||||
auto main(int argc, char *argv[]) -> int
|
||||
{
|
||||
hack::log()("ok");
|
||||
}
|
||||
7
bin/meson.build
Executable file
7
bin/meson.build
Executable file
@@ -0,0 +1,7 @@
|
||||
executable(
|
||||
meson.project_name(),
|
||||
'main.cpp',
|
||||
dependencies : deps,
|
||||
cpp_args: args,
|
||||
include_directories : inc
|
||||
)
|
||||
48
meson.build
Executable file
48
meson.build
Executable file
@@ -0,0 +1,48 @@
|
||||
project(
|
||||
meson.current_source_dir().split('/').get(-1),
|
||||
'cpp',
|
||||
version : run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip(),
|
||||
default_options : [
|
||||
'warning_level=1',
|
||||
'optimization=3',
|
||||
'cpp_std=c++20'
|
||||
])
|
||||
|
||||
cc = meson.get_compiler('cpp')
|
||||
if cc.get_id() == 'gcc'
|
||||
add_project_arguments(
|
||||
'-Wpedantic',
|
||||
'-Wno-shadow',
|
||||
'-Wno-maybe-uninitialized',
|
||||
'-Wno-volatile',
|
||||
'-Wno-unused-header',
|
||||
language: 'cpp'
|
||||
)
|
||||
endif
|
||||
|
||||
# Общие флаги для GCC и Clang
|
||||
add_project_arguments(
|
||||
'-Wno-unused-but-set-variable',
|
||||
'-Wno-comment',
|
||||
'-Wno-unused-parameter',
|
||||
'-Wno-unused-value',
|
||||
'-Wno-missing-field-initializers',
|
||||
'-Wno-narrowing',
|
||||
'-Wno-deprecated-enum-enum-conversion',
|
||||
'-Wno-format-security',
|
||||
'-Wno-switch',
|
||||
'-Wno-ignored-attributes',
|
||||
'-Wno-unused-variable',
|
||||
'-Wno-unused-function',
|
||||
'-Wno-unknown-pragmas',
|
||||
language: 'cpp'
|
||||
)
|
||||
|
||||
args = []
|
||||
inc = []
|
||||
deps = [
|
||||
subproject('hack').get_variable('hack_dep')
|
||||
]
|
||||
|
||||
subdir('src')
|
||||
subdir('bin')
|
||||
8
src/meson.build
Executable file
8
src/meson.build
Executable file
@@ -0,0 +1,8 @@
|
||||
inc += include_directories('.')
|
||||
|
||||
headers = []
|
||||
|
||||
hack_dep = declare_dependency(
|
||||
include_directories: inc,
|
||||
dependencies: deps
|
||||
)
|
||||
Reference in New Issue
Block a user