Skip to content

Commit 663df15

Browse files
committed
Revert "sigc++.h: Don't mention CMake"
This reverts commit 5355105. sigc++-2.0 can be used by a CMake project even though sigc++-2.0 itself has not been built with CMake.
1 parent 5355105 commit 663df15

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

sigc++/sigc++.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* You should have received a copy of the GNU Lesser General Public
1515
* License along with this library; if not, write to the Free Software
1616
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17+
*
1718
*/
1819

1920
#ifndef SIGCXX_SIGCXX_H
@@ -99,6 +100,19 @@
99100
* Your @c PKG_CHECK_MODULES() call should also mention any other libraries that
100101
* you need to use via pkg-config.
101102
*
103+
* @subsection cmake Using CMake
104+
*
105+
* If using CMake, use the following in @c CMakeList.txt:
106+
* @code
107+
* include(FindPkgConfig)
108+
* pkg_check_modules(DEPS REQUIRED sigc++-2.0)
109+
* include_directories(${DEPS_INCLUDE_DIRS})
110+
* target_link_libraries(yourprogram ${DEPS_LIBRARIES})
111+
* @endcode
112+
*
113+
* Your @c pkg_check_modules() call should also mention any other libraries that
114+
* you need to use via pkg-config.
115+
*
102116
* @section scope Scope of Documentation
103117
*
104118
* libsigc++ contains many template functions and template classes/structs,

0 commit comments

Comments
 (0)