1project('wxwidgets test', 'cpp', default_options : ['cpp_std=c++11'])
2
3wxd = dependency('wxwidgets', version : '>=5', required : false)
4wxd = dependency('wxwidgets', version : '>=3.0.0', required : false)
5
6if wxd.found()
7  wp = executable('wxprog', 'wxprog.cpp', dependencies : wxd)
8
9  test('wxtest', wp)
10
11  # WxWidgets framework is available, we can use required here
12  wx_stc = dependency('wxwidgets', version : '>=3.0.0', modules : ['std', 'stc'])
13  stc_exe = executable('wxstc', 'wxstc.cpp', dependencies : wx_stc)
14  test('wxstctest', stc_exe)
15
16  # Check we can apply a version constraint
17  dependency('wxwidgets', version: '>=@0@'.format(wxd.version()))
18
19endif
20