2019-09-08 16:42:10 +00:00
|
|
|
project('geostat', 'cpp', default_options : ['cpp_std=c++2a'])
|
|
|
|
curl_dep = dependency('libcurl')
|
|
|
|
json_dep = dependency('nlohmann_json')
|
2019-09-30 00:34:56 +00:00
|
|
|
sqlite_dep = dependency('sqlite3')
|
2019-09-08 16:42:10 +00:00
|
|
|
#tinyxml_dep = dependency('tinyxml2')
|
|
|
|
|
|
|
|
magick_dep = dependency('Magick++', required : false)
|
|
|
|
if not magick_dep.found()
|
|
|
|
magick_dep = dependency('GraphicsMagick++', required : false)
|
|
|
|
endif
|
|
|
|
if not magick_dep.found()
|
|
|
|
error('ImageMagick++ or GraphicsMagick++ not found.')
|
|
|
|
else
|
|
|
|
add_global_arguments('-Dgraphicsmagick', language : 'cpp')
|
|
|
|
endif
|
|
|
|
|
|
|
|
link = ['-lgpx', '-lheatmap']
|
|
|
|
src = ['geostat.cpp', 'okapi.cpp', 'gpx.cpp', 'cache.cpp', 'debug.cpp', 'heat.cpp']
|
2019-09-30 00:34:56 +00:00
|
|
|
src_db = ['geodb.cpp', 'debug.cpp', 'ocdb.cpp', 'okapi.cpp']
|
2019-09-08 16:42:10 +00:00
|
|
|
|
|
|
|
executable('geostat', src, dependencies : [curl_dep, json_dep, magick_dep], link_args: link)
|
2019-09-30 00:34:56 +00:00
|
|
|
executable('geodb', src_db, dependencies : [sqlite_dep, json_dep, curl_dep])
|
2019-09-08 16:42:10 +00:00
|
|
|
|
|
|
|
configure_file(input: 'Poland.png', output: 'Poland.png', copy: true)
|
2019-09-24 12:52:10 +00:00
|
|
|
configure_file(input: 'Poland_big.png', output: 'Poland_big.png', copy: true)
|
2019-09-08 16:42:10 +00:00
|
|
|
configure_file(input: 'Poland_relief.png', output: 'Poland_relief.png', copy: true)
|
2019-09-08 20:18:13 +00:00
|
|
|
configure_file(input: 'Europe.png', output: 'Europe.png', copy: true)
|
2019-09-15 10:20:21 +00:00
|
|
|
configure_file(input: 'Podlaskie.png', output: 'Podlaskie.png', copy: true)
|
|
|
|
configure_file(input: 'Pomorskie.png', output: 'Pomorskie.png', copy: true)
|
2019-09-15 11:33:27 +00:00
|
|
|
configure_file(input: 'Malopolskie.png', output: 'Malopolskie.png', copy: true)
|
|
|
|
configure_file(input: 'Warminsko-Mazurskie.png', output: 'Warminsko-Mazurskie.png', copy: true)
|
|
|
|
configure_file(input: 'Kujawsko-Pomorskie.png', output: 'Kujawsko-Pomorskie.png', copy: true)
|
|
|
|
configure_file(input: 'Mazowieckie.png', output: 'Mazowieckie.png', copy: true)
|
|
|
|
configure_file(input: 'Wielkopolskie.png', output: 'Wielkopolskie.png', copy: true)
|
|
|
|
configure_file(input: 'Dolnoslaskie.png', output: 'Dolnoslaskie.png', copy: true)
|
|
|
|
configure_file(input: 'Lubelskie.png', output: 'Lubelskie.png', copy: true)
|
2019-09-15 11:45:25 +00:00
|
|
|
configure_file(input: 'Lodzkie.png', output: 'Lodzkie.png', copy: true)
|
|
|
|
configure_file(input: 'Lubuskie.png', output: 'Lubuskie.png', copy: true)
|
2019-09-15 11:33:27 +00:00
|
|
|
configure_file(input: 'Opolskie.png', output: 'Opolskie.png', copy: true)
|
|
|
|
configure_file(input: 'Podkarpackie.png', output: 'Podkarpackie.png', copy: true)
|
|
|
|
configure_file(input: 'Slaskie.png', output: 'Slaskie.png', copy: true)
|
|
|
|
configure_file(input: 'Swietokrzyskie.png', output: 'Swietokrzyskie.png', copy: true)
|
|
|
|
configure_file(input: 'Zachodniopomorskie.png', output: 'Zachodniopomorskie.png', copy: true)
|