poly2tri/meson.build

22 lines
693 B
Meson
Raw Normal View History

2018-03-13 16:04:11 +01:00
project('poly2tri', ['cpp'])
include = include_directories('.')
lib = static_library('poly2tri', sources : [
'poly2tri/common/shapes.cc',
'poly2tri/sweep/advancing_front.cc',
'poly2tri/sweep/cdt.cc',
'poly2tri/sweep/sweep.cc',
'poly2tri/sweep/sweep_context.cc',
])
2018-05-28 19:55:02 +02:00
thread_dep = dependency('threads')
boost_test_dep = dependency('boost', modules : [ 'filesystem', 'unit_test_framework' ], required : false)
2018-05-28 19:55:02 +02:00
if boost_test_dep.found()
test('Unit Test', executable('unittest', [
'unittest/main.cpp',
'unittest/TriangleTest.cpp',
2018-05-28 19:55:02 +02:00
], dependencies : [boost_test_dep, thread_dep], link_with : lib))
endif
2018-09-26 11:09:14 +02:00
poly2tri_dep = declare_dependency(include_directories : include, link_with : lib)