From 663df15c62859495cf1ec5d5e3978a4d2b0f32ae Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Sun, 12 Dec 2021 10:53:43 +0100 Subject: 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. --- sigc++/sigc++.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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, -- cgit v1.2.1