Doc: add CMake example
authorSebastien Boisvert <sboisvert@gydle.com>
Thu, 16 Jun 2016 15:41:11 +0000 (11:41 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 27 Jun 2016 16:43:11 +0000 (12:43 -0400)
commitc2da416ae9292de321f63ace1590304133563dd0
tree8bfa0e42ded0561264e689049ca0a5674fad753c
parentacb9c126d4251e4f80f2d421f0874c815fce72db
Doc: add CMake example

In doc/examples/cmake-multiple-shared-libraries/, a new example lives.
This example requires a C++ compiler (HAVE_CXX) and it requires also a
cmake executable (HAVE_CMAKE). This example relies on the cmake module
called FindLTTngUST, which was kindly provided by Philippe Proulx.

The alignment of a small amount of lines was improved in the FindLTTngUST
module.

This new example generates a shared library (tracepoint provider) that
links with dl and with lttng-ust. Two other shared libraries are also
generated, and these two are linked with the tracepoint provider shared
library.

Link: https://lists.lttng.org/pipermail/lttng-dev/2016-June/026213.html
Link: https://lists.lttng.org/pipermail/lttng-dev/2016-June/026203.html
Link: https://www.pastery.net/fvanfh/raw/
Acked-by: Philippe Proulx <eeppeliteloop@gmail.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Sebastien Boisvert <sboisvert@gydle.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 files changed:
doc/examples/cmake-multiple-shared-libraries/CMakeLists.txt [new file with mode: 0644]
doc/examples/cmake-multiple-shared-libraries/README.md [new file with mode: 0644]
doc/examples/cmake-multiple-shared-libraries/aligner-lib.cpp [new file with mode: 0644]
doc/examples/cmake-multiple-shared-libraries/aligner-lib.h [new file with mode: 0644]
doc/examples/cmake-multiple-shared-libraries/aligner.cpp [new file with mode: 0644]
doc/examples/cmake-multiple-shared-libraries/cmake/FindLTTngUST.cmake [new file with mode: 0644]
doc/examples/cmake-multiple-shared-libraries/tester-lib.cpp [new file with mode: 0644]
doc/examples/cmake-multiple-shared-libraries/tester-lib.h [new file with mode: 0644]
doc/examples/cmake-multiple-shared-libraries/tester.cpp [new file with mode: 0644]
doc/examples/cmake-multiple-shared-libraries/trace.sh [new file with mode: 0755]
doc/examples/cmake-multiple-shared-libraries/tracepoint-provider.cpp [new file with mode: 0644]
doc/examples/cmake-multiple-shared-libraries/tracepoint-provider.h [new file with mode: 0644]
This page took 0.025644 seconds and 4 git commands to generate.