Skip to content

Commit 497f6e4

Browse files
committed
sigc++/sigc++.h: Describe how to use libsigc++ with meson
1 parent 854e7af commit 497f6e4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

sigc++/sigc++.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,25 @@
6464
* @code
6565
* g++ program.cc -o program `pkg-config --cflags --libs sigc++-2.0`
6666
* @endcode
67+
* If your version of g++ is not C++11-compliant be default,
68+
* add the @c -std=c++11 option.
69+
*
70+
* @subsection meson Using Meson
71+
*
72+
* If using <a href="https://mesonbuild.com/">Meson</a>, include the following
73+
* in @c meson.build:
74+
* @code
75+
* sigc_dep = dependency('sigc++-2.0')
76+
* program_name = 'program'
77+
* cpp_sources = [ 'program.cc' ]
78+
* executable(program_name,
79+
* cpp_sources,
80+
* dependencies: sigc_dep
81+
* )
82+
* @endcode
83+
*
84+
* Your @c dependencies: keyword argument should also mention any other libraries
85+
* that you need to use.
6786
*
6887
* @subsection autotools Using Autotools
6988
*

0 commit comments

Comments
 (0)