Git Product home page Git Product logo

Comments (4)

matlo607 avatar matlo607 commented on May 22, 2024

You should either disable the build of tests using -DUTF8_TESTS=off or run git submodule update --init at the root of the project to clone googletest's repository into extern/gtest.

from utfcpp.

nemtrif avatar nemtrif commented on May 22, 2024

The zip does not contain the google test library. It's really intended for CI runs only.

from utfcpp.

0ric1 avatar 0ric1 commented on May 22, 2024

I would expect that googletest is included in the zip too or downloaded automatically, other libraries contain everything to build too or download on demand e.g. googlebenchmark https://github.com/google/benchmark that adds googletest on demand with cmake ExternalProject_Add .

from utfcpp.

matlo607 avatar matlo607 commented on May 22, 2024

@blonder : including the sources of a third party in a project is, in my opinion, not a good idea for several reasons (build systems' incompatibility, forking prevent you from getting update, new features and bug fixes easily, ...).

Using a package manager to pull the dependencies is a preferable approach. C++ does not offer an official one yet. I would advise you to have a look at Conan.

git-submodule has a good reason to exist for big projects. That allows to add modularity to the project and also avoid to hit Git's performance issues when you have millions of files. This approach has an important drawback, it only works if the build systems of the projects are the same (unless you write an adapter yourself, good luck with that).

ExternalProject_Add is not a good idea too. CMake is a build system, not a package manager. People want to do everything with it, I think it's an error.

from utfcpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.