diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2021-12-12 10:53:43 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2021-12-12 10:53:43 +0100 |
commit | 663df15c62859495cf1ec5d5e3978a4d2b0f32ae (patch) | |
tree | 83cf3563b1c0489c26784dc81b78126c207545c8 | |
parent | 53551050c59c3a35e64816f78e555ee2e064cc31 (diff) | |
download | sigc++-663df15c62859495cf1ec5d5e3978a4d2b0f32ae.tar.gz |
Revert "sigc++.h: Don't mention CMake"
This reverts commit 53551050c59c3a35e64816f78e555ee2e064cc31.
sigc++-2.0 can be used by a CMake project even though
sigc++-2.0 itself has not been built with CMake.
-rw-r--r-- | sigc++/sigc++.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sigc++/sigc++.h b/sigc++/sigc++.h index cc63c35..7acb549 100644 --- a/sigc++/sigc++.h +++ b/sigc++/sigc++.h @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ #ifndef SIGCXX_SIGCXX_H @@ -99,6 +100,19 @@ * Your @c PKG_CHECK_MODULES() call should also mention any other libraries that * you need to use via pkg-config. * + * @subsection cmake Using CMake + * + * If using CMake, use the following in @c CMakeList.txt: + * @code + * include(FindPkgConfig) + * pkg_check_modules(DEPS REQUIRED sigc++-2.0) + * include_directories(${DEPS_INCLUDE_DIRS}) + * target_link_libraries(yourprogram ${DEPS_LIBRARIES}) + * @endcode + * + * Your @c pkg_check_modules() call should also mention any other libraries that + * you need to use via pkg-config. + * * @section scope Scope of Documentation * * libsigc++ contains many template functions and template classes/structs, |