Import the package
You can import pid-daemonize 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-daemonize)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-daemonize VERSION 1.0)Components
daemonize
This is a shared library (set of header files and a shared binary object).
functions to help creating, stopping and monitoring background processes
include directive :
Not specified (dangerous). You can try including any or all of these headers:
#include <pid/daemonize.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 daemonize
PACKAGE pid-daemonize)In the CMakeLists.txt files of libraries exporting the dependency :
PID_Component_Dependency(
COMPONENT your component name
EXPORT daemonize
PACKAGE pid-daemonize)daemon-launcher
This is an application (just a binary executable). Potentially designed to be called by an application or library.
an application to run any executable as a background process and kill them
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 daemon-launcher
PACKAGE pid-daemonize)In the CMakeLists.txt files of libraries exporting the dependency :
PID_Component_Dependency(
COMPONENT your component name
EXPORT daemon-launcher
PACKAGE pid-daemonize)long-running-process
This is an application (just a binary executable). Potentially designed to be called by an application or library.
a dummy long running process for pid-tests/daemonize test purposes
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 long-running-process
PACKAGE pid-daemonize)In the CMakeLists.txt files of libraries exporting the dependency :
PID_Component_Dependency(
COMPONENT your component name
EXPORT long-running-process
PACKAGE pid-daemonize)