summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2020-10-12 13:12:10 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2020-10-12 13:12:10 +0200
commit497f6e49a2477ac4681a88681814ff08ca718419 (patch)
tree9305961cc747729336642905cb5aa02ca75cbc7a
parent854e7af0079811ab0229ced5ed8c24549b2754bf (diff)
downloadsigc++-497f6e49a2477ac4681a88681814ff08ca718419.tar.gz
sigc++/sigc++.h: Describe how to use libsigc++ with meson
-rw-r--r--sigc++/sigc++.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/sigc++/sigc++.h b/sigc++/sigc++.h
index 765b1f8..e04ddd8 100644
--- a/sigc++/sigc++.h
+++ b/sigc++/sigc++.h
@@ -64,6 +64,25 @@
* @code
* g++ program.cc -o program `pkg-config --cflags --libs sigc++-2.0`
* @endcode
+ * If your version of g++ is not C++11-compliant be default,
+ * add the @c -std=c++11 option.
+ *
+ * @subsection meson Using Meson
+ *
+ * If using <a href="https://mesonbuild.com/">Meson</a>, include the following
+ * in @c meson.build:
+ * @code
+ * sigc_dep = dependency('sigc++-2.0')
+ * program_name = 'program'
+ * cpp_sources = [ 'program.cc' ]
+ * executable(program_name,
+ * cpp_sources,
+ * dependencies: sigc_dep
+ * )
+ * @endcode
+ *
+ * Your @c dependencies: keyword argument should also mention any other libraries
+ * that you need to use.
*
* @subsection autotools Using Autotools
*