# Unit test for Meson syntax highlight. License: LGPL
project('projectname', 'cpp')



sourcefiles = <beginfold id='1'>[</beginfold id='1'>'a.cpp', 'b.cpp'<endfold id='1'>]</endfold id='1'>

foreach sourcefile : sourcefiles
    message('this is a source file: ' + sourcefile)
endforeach

x=1
if x+1 == 2 and x-1 == 0
    message('I can work in this universe!')
endif

subprojectresult = subproject('mysubprojectdir')

mysharedlib = shared_library('libraryname', sourcefiles, linkwith: subprojectresult.staticlib)

executable('myprogram', <beginfold id='1'>[</beginfold id='1'>'test.cpp'<endfold id='1'>]</endfold id='1'>, linkwith: mysharedlib)
