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

Automate gtest download by Xcode #548

Open
maxitg opened this issue Dec 4, 2020 · 0 comments
Open

Automate gtest download by Xcode #548

maxitg opened this issue Dec 4, 2020 · 0 comments
Labels
convenience Syntax improvements that don't significantly change functionality infrastructure Has to do with changes to the development process, e.g., build scripts, CI, testing utilities

Comments

@maxitg
Copy link
Owner

maxitg commented Dec 4, 2020

The problem

Currently, in order to start using the tests in the Xcode project, one has to manually run cmake to get gtest downloaded.
It would be nice to make Xcode download it itself at first build (perhaps by calling cmake in a pre-build script).

Possible solution

Perhaps it could check whether the gtest files exist, and if not, it can just run cmake to build with tests:

mkdir build && cd build
cmake .. -DSET_REPLACE_BUILD_TESTING=ON
cmake --build .
@maxitg maxitg added convenience Syntax improvements that don't significantly change functionality infrastructure Has to do with changes to the development process, e.g., build scripts, CI, testing utilities labels Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
convenience Syntax improvements that don't significantly change functionality infrastructure Has to do with changes to the development process, e.g., build scripts, CI, testing utilities
Projects
None yet
Development

No branches or pull requests

1 participant