File: README.md

package info (click to toggle)
dh-cmake 0.6.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 392 kB
  • sloc: python: 2,252; perl: 26; makefile: 6; ansic: 6; sh: 2
file content (19 lines) | stat: -rw-r--r-- 925 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CMake Example
=============

This example project demonstrates how to use dh-cmake's CMake functionality. It
can be built out of the box with dpkg-buildpackage.

Look in the `debian/rules` file. Notice the `--with cmake` parameter. This
enables the `cmake` Debhelper sequence, which runs the `dh_cmake_install`
command. This command checks the `debian/` directory for `*.cmake-components`
files.

Now look at the `debian/*.cmake-components` files, and compare them with the
`CMakeLists.txt` file. `CMakeLists.txt` installs the header and library
symlink in the `Development` component, and the shared library itself in the
`Libraries` component. By listing `Libraries` in
`debian/libcmakeexample.cmake-components`, the shared library gets installed in
`libcmakeexample`. Likewise, listing `Development` in
`debian/libcmakeexample-dev.cmake-components` causes `libcmakeexample-dev` to
get the library symlink and header file.