maxitg / SetReplace

C++/Wolfram Language package for exploring set and graph rewriting systems
MIT License
216 stars 43 forks source link

Automate gtest download by Xcode #548

Open maxitg opened 3 years ago

maxitg commented 3 years ago

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 .