Debian Codegraph @

examples/cmake/README.md

raw symbols SCIP
1 CMake Example
2 =============
3
4 This example project demonstrates how to use dh-cmake's CMake functionality. It
5 can be built out of the box with dpkg-buildpackage.
6
7 Look in the `debian/rules` file. Notice the `--with cmake` parameter. This
8 enables the `cmake` Debhelper sequence, which runs the `dh_cmake_install`
9 command. This command checks the `debian/` directory for `*.cmake-components`
10 files.
11
12 Now look at the `debian/*.cmake-components` files, and compare them with the
13 `CMakeLists.txt` file. `CMakeLists.txt` installs the header and library
14 symlink in the `Development` component, and the shared library itself in the
15 `Libraries` component. By listing `Libraries` in
16 `debian/libcmakeexample.cmake-components`, the shared library gets installed in
17 `libcmakeexample`. Likewise, listing `Development` in
18 `debian/libcmakeexample-dev.cmake-components` causes `libcmakeexample-dev` to
19 get the library symlink and header file.