NAV

Import the package

You can import pid-log as usual with PID. In the root CMakelists.txt file of your package, after the package declaration you have to write something like:

PID_Dependency(pid-log)

It will try to install last version of the package.

If you want a specific version (recommended), for instance the currently last released version:

PID_Dependency(pid-log VERSION 3.1)

Notice that PID will automatically install the last available patch version of the package when configuring the project with the option REQUIRED_PACKAGES_AUTOMATIC_DOWNLOAD to ON (default value).

Components

pid-log

This is a shared library (set of header files and a shared binary object).

Core PID logging system functionalities.

include directive :

In your code using the library:

#include <pid/log.h>

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	pid-log
				PACKAGE	pid-log)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	pid-log
				PACKAGE	pid-log)

pid-log-test-hdr

This is a pure header library (no binary).

library for testing PID logging system

exported dependencies:

include directive :

Not specified (dangerous). You can try including any or all of these headers:

#include <pid/log/pid-log_pid-log-test-hdr.h>
#include <pid_test/test_in_headers.h>

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	pid-log-test-hdr
				PACKAGE	pid-log)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	pid-log-test-hdr
				PACKAGE	pid-log)

pid-log-test-src

This is a shared library (set of header files and a shared binary object).

library for testing PID logging system

exported dependencies:

include directive :

Not specified (dangerous). You can try including any or all of these headers:

#include <pid/log/pid-log_pid-log-test-src.h>
#include <pid_test/test_in_sources.h>

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	pid-log-test-src
				PACKAGE	pid-log)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	pid-log-test-src
				PACKAGE	pid-log)