2024-01-23 10:42:04 +01:00
|
|
|
project('kima2', 'cpp', default_options : ['cpp_std=c++20'], version : '1.8.0')
|
2019-10-10 13:36:48 +02:00
|
|
|
|
|
|
|
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')
|
2019-10-11 09:09:18 +02:00
|
|
|
|
2019-10-11 12:49:32 +02:00
|
|
|
nlohmann_lib = dependency('nlohmann_json', version : '>=3.5.0', required : false)
|
2019-10-11 09:09:18 +02:00
|
|
|
|
|
|
|
if not nlohmann_lib.found()
|
2019-10-14 19:32:14 +02:00
|
|
|
nlohmann_inc = include_directories('subprojects/nlohmann_json/single_include')
|
2019-10-11 10:01:21 +02:00
|
|
|
nlohmann_lib = declare_dependency(include_directories : nlohmann_inc)
|
2019-10-11 09:09:18 +02:00
|
|
|
endif
|
2019-10-10 13:36:48 +02:00
|
|
|
|
2019-10-11 10:01:21 +02:00
|
|
|
csv_inc = include_directories('subprojects/csv-parser/single_include')
|
|
|
|
csv_dep = declare_dependency(include_directories : csv_inc)
|
|
|
|
|
2019-10-10 13:36:48 +02:00
|
|
|
singleapp_proj = subproject('singleapplication')
|
|
|
|
singleapp_lib = singleapp_proj.get_variable('singleapp_lib')
|
|
|
|
singleapp_dep = singleapp_proj.get_variable('singleapp_dep')
|
2019-10-09 16:31:29 +02:00
|
|
|
|
|
|
|
subdir('src')
|
2019-10-10 14:42:11 +02:00
|
|
|
|
2019-10-10 14:52:00 +02:00
|
|
|
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
|
2019-10-11 12:49:32 +02:00
|
|
|
|