Split src into subdirectories
This commit is contained in:
parent
1413f76d2a
commit
b1c717ceb6
15 changed files with 30 additions and 19 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,5 @@
|
|||
compile_commands.json
|
||||
tags
|
||||
rootwater.jpg
|
||||
images/
|
||||
db/
|
||||
|
|
22
meson.build
22
meson.build
|
@ -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
1
src/meson.build
Normal file
|
@ -0,0 +1 @@
|
|||
subdir('recognition')
|
23
src/recognition/meson.build
Normal file
23
src/recognition/meson.build
Normal 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,
|
||||
)
|
||||
|
Loading…
Reference in a new issue