meson.build 389 B

123456789101112131415
  1. project('same basename', 'c')
  2. subdir('sharedsub')
  3. subdir('staticsub')
  4. # Use the same source file to check that each top level target
  5. # has its own unique working directory. If they don't
  6. # then the .o files will clobber each other.
  7. exe1 = executable('name', 'exe1.c', link_with : stlib)
  8. exe2 = executable('name2', 'exe2.c', link_with : shlib)
  9. test('static', exe1)
  10. test('shared', exe2)