NAV

Import the package

You can import wui-cpp 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(wui-cpp)

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(wui-cpp VERSION 1.1)

Components

wui-cpp

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

include directive :

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

#include <wui-cpp/server.h>
#include <wui-cpp/widgets.h>
#include <wui-cpp/widgets/button.h>
#include <wui-cpp/widgets/combobox.h>
#include <wui-cpp/widgets/label.h>
#include <wui-cpp/widgets/progress_bar.h>
#include <wui-cpp/widgets/range.h>
#include <wui-cpp/widgets/slider.h>
#include <wui-cpp/widgets/switch.h>
#include <wui-cpp/widgets/tabs.h>
#include <wui-cpp/widgets/widget.h>
#include <wui-cpp/widgets/widget_container.h>
#include <wui-cpp/wui.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	wui-cpp
				PACKAGE	wui-cpp)

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

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	wui-cpp
				PACKAGE	wui-cpp)

wui-cpp-st

This is a static library (set of header files and an archive of binary objects).

include directive :

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

#include <wui-cpp/server.h>
#include <wui-cpp/widgets.h>
#include <wui-cpp/widgets/button.h>
#include <wui-cpp/widgets/combobox.h>
#include <wui-cpp/widgets/label.h>
#include <wui-cpp/widgets/progress_bar.h>
#include <wui-cpp/widgets/range.h>
#include <wui-cpp/widgets/slider.h>
#include <wui-cpp/widgets/switch.h>
#include <wui-cpp/widgets/tabs.h>
#include <wui-cpp/widgets/widget.h>
#include <wui-cpp/widgets/widget_container.h>
#include <wui-cpp/wui.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	wui-cpp-st
				PACKAGE	wui-cpp)

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

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	wui-cpp-st
				PACKAGE	wui-cpp)