R3BRootGroup / R3BRoot

Framework for Simulations and Data Analysis of R3B Experiment
https://github.com/R3BRootGroup/R3BRoot/wiki
GNU General Public License v3.0
18 stars 104 forks source link

Add GTest dependency if not found #843

Closed YanzhaoW closed 1 year ago

YanzhaoW commented 1 year ago

Changes

  1. Add Googletest dependency using cmake Fetchcontent if it's not found in the local system.
  2. Change the gtest lib name from ${GTEST_BOTH_LIBRARIES} to GTest::gtest_main. The former one has been deprecated in newer versions.

Fixes

  1. Close the issue #738
  2. Fix the PR #840 regarding being unable to run gtest.

Checklist:

YanzhaoW commented 1 year ago

@jose-luis-rs If there is no other problems for this PR, please merge it.