[libsigcplusplus] Reference docs: main page: Mention CMake.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigcplusplus] Reference docs: main page: Mention CMake.
- Date: Tue, 15 Mar 2016 11:44:27 +0000 (UTC)
commit 4ff55db2cb6038ea5197d8a89ee4ec4f456e3834
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Mar 15 12:32:01 2016 +0100
Reference docs: main page: Mention CMake.
sigc++/sigc++.h | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/sigc++/sigc++.h b/sigc++/sigc++.h
index 64fcd66..3389a2e 100644
--- a/sigc++/sigc++.h
+++ b/sigc++/sigc++.h
@@ -65,6 +65,8 @@
* g++ program.cc -o program `pkg-config --cflags --libs sigc++-3.0`
* @endcode
*
+ * @subsection autotools Using Autotools
+ *
* Alternatively, if using autoconf, use the following in @c configure.ac:
* @code
* PKG_CHECK_MODULES([LIBSIGC], [sigc++-3.0])
@@ -76,6 +78,16 @@
* program_LDADD = $(LIBSIGC_LIBS)
* @endcode
*
+ * @subsection cmake Using CMake
+ *
+ * If using CMake, use the following in @c CMakeList.txt:
+ * @code
+ * include(FindPkgConfig)
+ * pkg_check_modules(DEPS REQUIRED sigc++-3.0)
+ * include_directories(${DEPS_INCLUDE_DIRS})
+ * target_link_libraries(yourprogram ${DEPS_LIBRARIES})
+ * @endcode
+ *
* @section scope Scope of Documentation
*
* libsigc++ contains many template functions and template classes/structs,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]