Split src into subdirectories

This commit is contained in:
King_DuckZ 2021-11-02 23:12:04 +01:00
parent 1413f76d2a
commit b1c717ceb6
15 changed files with 30 additions and 19 deletions

3
.gitignore vendored
View file

@ -1,2 +1,5 @@
compile_commands.json
tags
rootwater.jpg
images/
db/

View file

@ -1,25 +1,9 @@
project('magicstore', 'cpp',
version: '0.1.0',
default_options: ['buildtype=debug', 'cpp_std=gnu++17', 'c_std=c11', 'build_testing=true'],
meson_version: '>=0.53.0',
)
libopencv_dep = dependency('opencv4')
libavcodec_dep = dependency('libavcodec', version: '>=58.134.100')
libavutil_dep = dependency('libavutil', version: '>=56.70.100')
libswscale_dep = dependency('libswscale', version: '>=5.9.100')
fs = import('fs')
executable(meson.project_name(),
'src/main.cpp',
'src/camera.cpp',
'src/file_handle.cpp',
'src/ffmpeg/avcodec.cpp',
'src/ffmpeg/avdeleter.cpp',
'src/ffmpeg/decoder.cpp',
dependencies: [
libopencv_dep,
libavcodec_dep,
libavutil_dep,
libswscale_dep,
],
install: true,
)
subdir('src')

1
src/meson.build Normal file
View file

@ -0,0 +1 @@
subdir('recognition')

View file

@ -0,0 +1,23 @@
project_name = fs.name(meson.current_source_dir())
libopencv_dep = dependency('opencv4')
libavcodec_dep = dependency('libavcodec', version: '>=58.134.100')
libavutil_dep = dependency('libavutil', version: '>=56.70.100')
libswscale_dep = dependency('libswscale', version: '>=5.9.100')
executable(project_name,
'main.cpp',
'camera.cpp',
'file_handle.cpp',
'ffmpeg/avcodec.cpp',
'ffmpeg/avdeleter.cpp',
'ffmpeg/decoder.cpp',
dependencies: [
libopencv_dep,
libavcodec_dep,
libavutil_dep,
libswscale_dep,
],
install: true,
)