documentation: adds new keyword usage to the given example.

pull/2529/head
Leif Middelschulte 7 years ago
parent f720e590b1
commit a2478d4dab
  1. 4
      docs/markdown/Qt5-module.md

@ -18,7 +18,9 @@ A simple example would look like this:
qt5 = import('qt5')
qt5_dep = dependency('qt5', modules: ['Core', 'Gui'])
inc = include_directories('includes')
moc_files = qt5.preprocess(moc_headers : 'myclass.h', include_directories: inc)
moc_files = qt5.preprocess(moc_headers : 'myclass.h',
moc_extra_arguments: ['-DMAKES_MY_MOC_HEADER_COMPILE'],
include_directories: inc)
executable('myprog', 'main.cpp', 'myclass.cpp', moc_files,
include_directories: inc,
dependencies : qt5_dep)

Loading…
Cancel
Save