Skip to content

BrOleg5/robotino2-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robotino2 Wrapper

There is Festo OpenRobotinoAPI wrapper.

Requirements

  • CMake v3.0 or later
  • OpenRobotinoAPI v1.8.31 or later
  • compiler: MSVC v19 (Visual Studio 2017) or later

Optional:

  • Doxygen v1.8.0 or later

Configure, build and install library with CMake

Windows 10 x86

# Create build directory
mkdir build

cmake -S robotino2-wrapper -B build

# Build certain configuration <cfg>: Debug (default), Release
cmake --build build --config <cfg>

# Install certain configuration <cfg>: Debug (default), Release
# <prefix> is installation path (default SystemPartition:\Program Files (x86)\<project name>)
cmake --install build --config <cfg> --prefix <prefix>

You can build and install test programs. For this add option -D BUILD_TESTS=ON

# Configure
cmake -S robotino2-wrapper -B build -D BUILD_TESTS=ON

To build Doxygen documentation, use BUILD_DOC option, doxygen target and Release configuration

cmake -S robotino4-lib/ -B build/ -D BUILD_DOC=ON
cmake --build build --config Release --target doxygen --prefix <prefix>
cmake --install build --config Release --target doxygen --prefix <prefix>

Using Robotino2 Wrapper with CMake

Add this strings in your CMakeLists.txt file:

find_package(Robotino2Wrapper 1.0 REQUIRED)
target_link_libraries(<ProjectName> robotino2wrapper)
# if necessary, add include directories to target
# target_include_directories(<ProjectName> ${Robotino2Wrapper_INCLUDE_DIRS})