kopia lustrzana https://gitlab.com/tomaszg/geostat
				
				
				
			
		
			
				
	
	
		
			26 wiersze
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Meson
		
	
	
			
		
		
	
	
			26 wiersze
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Meson
		
	
	
| project('geostat', 'cpp', default_options : ['cpp_std=c++2a'])
 | |
| curl_dep = dependency('libcurl')
 | |
| json_dep = dependency('nlohmann_json')
 | |
| #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']
 | |
| 
 | |
| executable('geostat', src, dependencies : [curl_dep, json_dep, magick_dep], link_args: link)
 | |
| 
 | |
| configure_file(input: 'Poland.png', output: 'Poland.png', copy: true)
 | |
| configure_file(input: 'Poland_relief.png', output: 'Poland_relief.png', copy: true)
 | |
| configure_file(input: 'Europe.png', output: 'Europe.png', copy: true)
 | |
| configure_file(input: 'Podlaskie.png', output: 'Podlaskie.png', copy: true)
 | |
| configure_file(input: 'Pomorskie.png', output: 'Pomorskie.png', copy: true)
 |