Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GuillaumeDua opened this issue Mar 11, 2024 · 0 comments
Open

Comments

@GuillaumeDua
Copy link

GuillaumeDua commented Mar 11, 2024

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)
@GuillaumeDua GuillaumeDua changed the title Externally provided googletest installation Externally provided 3rd-parties (googletest, Boost, etc.) installation Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant