|
65 | 65 | * g++ program.cc -o program `pkg-config --cflags --libs sigc++-2.0`
|
66 | 66 | * @endcode
|
67 | 67 | *
|
| 68 | + * @subsection autotools Using Autotools |
| 69 | + * |
68 | 70 | * Alternatively, if using autoconf, use the following in @c configure.ac:
|
69 | 71 | * @code
|
70 |
| - * PKG_CHECK_MODULES([LIBSIGC], [sigc++-2.0]) |
| 72 | + * PKG_CHECK_MODULES([DEPS], [sigc++-2.0]) |
71 | 73 | * @endcode
|
72 |
| - * Then use the generated @c LIBSIGC_CFLAGS and @c LIBSIGC_LIBS variables |
| 74 | + * Then use the generated @c DEPS_CFLAGS and @c DEPS_LIBS variables |
73 | 75 | * in the project @c Makefile.am files. For example:
|
74 | 76 | * @code
|
75 |
| - * program_CPPFLAGS = $(LIBSIGC_CFLAGS) |
76 |
| - * program_LDADD = $(LIBSIGC_LIBS) |
| 77 | + * yourprogram_CPPFLAGS = $(DEPS_CFLAGS) |
| 78 | + * yourprogram_LDADD = $(DEPS_LIBS) |
77 | 79 | * @endcode
|
78 | 80 | *
|
| 81 | + * Your @c PKG_CHECK_MODULES() call should also mention any other libraries that |
| 82 | + * you need to use via pkg-config. |
| 83 | + * |
| 84 | + * @subsection cmake Using CMake |
| 85 | + * |
| 86 | + * If using CMake, use the following in @c CMakeList.txt: |
| 87 | + * @code |
| 88 | + * include(FindPkgConfig) |
| 89 | + * pkg_check_modules(DEPS REQUIRED sigc++-2.0) |
| 90 | + * include_directories(${DEPS_INCLUDE_DIRS}) |
| 91 | + * target_link_libraries(yourprogram ${DEPS_LIBRARIES}) |
| 92 | + * @endcode |
| 93 | + * |
| 94 | + * Your @c pkg_check_modules() call should also mention any other libraries that |
| 95 | + * you need to use via pkg-config. |
| 96 | + * |
79 | 97 | * @section scope Scope of Documentation
|
80 | 98 | *
|
81 | 99 | * libsigc++ contains many template functions and template classes/structs,
|
|
0 commit comments