Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.
This repository was archived by the owner on May 31, 2025. It is now read-only.

Externally provided 3rd-parties (googletest, Boost, etc.) installation #1192

@GuillaumeDua

Description

@GuillaumeDua

Question

  • Is there a way to use a googletest/googlemock, Boost, implementations provided by a dependency-manager (such as Conan, vcpkg, etc.) or CMake's fetch_content,
    instead of the system one, in a ROS (1) project ?

Motivations

The key idea is to get newer versions, in order to:

  • Get rid of some warnings produced by modern compilers and tools
  • Ease the transition to C++20, 23

Examples:

  • using fetch_content in a CMakeLists.txt
FetchContent_Declare(
    googletest
    GIT_REPOSITORY https://github.com/google/googletest.git
    GIT_TAG        v1.14.0 # f8d7d77c06936315286eb55f8de22cd23c188571
    OVERRIDE_FIND_PACKAGE
)
FetchContent_MakeAvailable(googletest)
FetchContent_MakeAvailable(googlemock)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions