SetReplace icon indicating copy to clipboard operation
SetReplace copied to clipboard

Automate gtest download by Xcode

Open maxitg opened this issue 4 years ago • 0 comments

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 avatar Dec 04 '20 18:12 maxitg