meson.build 629 B

123456789101112131415161718192021222324252627282930313233343536
  1. project('gits-r-us', 'cpp', 'c')
  2. add_global_arguments(['-g3'], language : 'c')
  3. add_global_arguments(['-g3'], language : 'cpp')
  4. lib_includes = include_directories('lib')
  5. thirdparty_includes = include_directories('thirdparty')
  6. boost = dependency('boost', modules : [
  7. 'thread',
  8. 'asio'
  9. ]
  10. )
  11. subdir('thirdparty')
  12. subdir('lib')
  13. microhttpd = dependency('libmicrohttpd', version: '>= 0.9.52')
  14. src = [
  15. 'src/gits-r-us.cpp',
  16. ]
  17. exe = executable(
  18. 'gits-r-us',
  19. src,
  20. dependencies: [
  21. boost,
  22. microhttpd
  23. ],
  24. link_with: [ macaroons_lib ],
  25. include_directories: [ lib_includes, thirdparty_includes ],
  26. )
  27. test('simple test', exe)