Import the package
You can import hardio_seatrac 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(hardio_seatrac)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(hardio_seatrac VERSION 0.1)Components
seatrac
This is a shared library (set of header files and a shared binary object).
exported dependencies:
- from package hardiocore:
- from package pid-threading:
- from package rpc-interfaces:
- from package physical-quantities:
- from package pid-log:
include directive :
Not specified (dangerous). You can try including any or all of these headers:
#include <hardio/devices/seatrac.h>
#include <hardio/devices/seatrac/beacon.h>
#include <hardio/devices/seatrac/definitions.h>
#include <hardio/devices/seatrac/device.h>
#include <hardio/devices/seatrac/driver.h>
#include <hardio/devices/seatrac/message.h>
#include <hardio/devices/seatrac/seatrac.h>
#include <hardio/seatrac.h>
#include <pid/log/hardio_seatrac_seatrac.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 seatrac
PACKAGE hardio_seatrac)In the CMakeLists.txt files of libraries exporting the dependency :
PID_Component_Dependency(
COMPONENT your component name
EXPORT seatrac
PACKAGE hardio_seatrac)seatrac_pc
This is an application (just a binary executable). Potentially designed to be called by an application or library.
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 seatrac_pc
PACKAGE hardio_seatrac)In the CMakeLists.txt files of libraries exporting the dependency :
PID_Component_Dependency(
COMPONENT your component name
EXPORT seatrac_pc
PACKAGE hardio_seatrac)seatrac_embedded
This is an application (just a binary executable). Potentially designed to be called by an application or library.
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 seatrac_embedded
PACKAGE hardio_seatrac)In the CMakeLists.txt files of libraries exporting the dependency :
PID_Component_Dependency(
COMPONENT your component name
EXPORT seatrac_embedded
PACKAGE hardio_seatrac)seatrac_embedded_rpc
This is an application (just a binary executable). Potentially designed to be called by an application or library.
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 seatrac_embedded_rpc
PACKAGE hardio_seatrac)In the CMakeLists.txt files of libraries exporting the dependency :
PID_Component_Dependency(
COMPONENT your component name
EXPORT seatrac_embedded_rpc
PACKAGE hardio_seatrac)