Skip to content

sintef-ocean/conan-xtypes

Repository files navigation

Linux GCC Windows MSVC

Conan.io recipe for eprosima xtypes.

How to use this package

  1. Add remote to conan's package remotes

    $ conan remote add sintef https://artifactory.smd.sintef.no/artifactory/api/conan/conan-local
  2. Using conanfile.txt and cmake in your project.

    Add conanfile.txt:

    [requires]
    eprosima-xtypes/cci.20230615@sintef/stable
    
    [options]
    eprosima-xtypes:with_tools=True
    
    [tool_requires]
    cmake/[>=3.25.0]
    
    [layout]
    cmake_layout
    
    [generators]
    CMakeDeps
    CMakeToolchain
    VirtualBuildEnv
    
    

    Insert into your CMakeLists.txt something like the following lines:

    cmake_minimum_required(VERSION 3.15)
    project(TheProject CXX)
    
    find_package(xtypes REQUIRED)
    
    add_executable(the_executor code.cpp)
    target_link_libraries(the_executor eprosima::xtypes)

    Install and build e.g. a Release configuration (linux):

    $ conan install . -s build_type=Release -pr:b=default
    $ source build/Release/generators/conanbuild.sh
    $ cmake --preset conan-release
    $ cmake --build build/Release
    $ source build/Release/generators/deactivate_conanbuild.sh

Package options

Option Allowed values Default
with_exceptions [True, False] True
with_tools [True, False] False

To build and run tests, set tools.build:skip_test=False in global.conf, in [conf] or --conf as part of conan install.

Known recipe issues

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published