33 lines
1.3 KiB
Meson
33 lines
1.3 KiB
Meson
project('kima2', 'cpp', default_options : ['cpp_std=c++17'], version : '1.5.3')
|
|
|
|
conf_data = configuration_data()
|
|
conf_data.set('PROJECT_VERSION', '"' + meson.project_version() + '"')
|
|
configure_file(output : 'config.h',
|
|
configuration : conf_data)
|
|
configuration_inc = include_directories('.')
|
|
|
|
#csv = cmake.subproject('csv-parser')
|
|
#csv_lib = csv.dependency('csv')
|
|
|
|
nlohmann_lib = dependency('nlohmann_json', version : '>=3.5.0', required : false)
|
|
|
|
if not nlohmann_lib.found()
|
|
nlohmann_inc = include_directories('subprojects/nlohmann_json/single_include')
|
|
nlohmann_lib = declare_dependency(include_directories : nlohmann_inc)
|
|
endif
|
|
|
|
csv_inc = include_directories('subprojects/csv-parser/single_include')
|
|
csv_dep = declare_dependency(include_directories : csv_inc)
|
|
|
|
singleapp_proj = subproject('singleapplication')
|
|
singleapp_lib = singleapp_proj.get_variable('singleapp_lib')
|
|
singleapp_dep = singleapp_proj.get_variable('singleapp_dep')
|
|
|
|
subdir('src')
|
|
|
|
if build_machine.system() == 'linux'
|
|
install_data('misc/kima2.svg', install_dir : get_option('datadir') / 'icons/hicolor/scalable/apps')
|
|
install_data('misc/kima2.desktop', install_dir : get_option('datadir') / 'applications')
|
|
install_data('manual/Benutzerhandbuch.pdf', install_dir : get_option('datadir') / 'kima2')
|
|
endif
|
|
|