remarkable_tool/meson.build

41 lines
803 B
Meson

project('remarkable_tool', 'cpp',
version: '0.1.0',
meson_version: '>=0.56.0',
default_options: [
'buildtype=release',
'cpp_std=c++20',
'b_ndebug=if-release',
],
)
conf = configuration_data()
conf.set('APP_NAME', meson.project_name())
project_config_file = configure_file(
input: 'config.h.in',
output: 'config.h',
configuration: conf,
)
qt5 = import('qt5')
qt5_dep = dependency('qt5', modules: ['Core', 'Gui', 'Widgets'])
moc_files = qt5.preprocess(
moc_headers: 'main_window.hpp',
dependencies: qt5_dep
)
simdjson_dep = dependency('simdjson', version: '>=0.5.0',
fallback: ['simdjson', 'simdjson_dep'],
)
executable(meson.project_name(),
'main.cpp',
'main_window.cpp',
moc_files,
'notebook_tree.cpp',
dependencies: [
simdjson_dep,
qt5_dep,
],
install: true,
)