- Ubuntu 20.04
-
download googletest
git clone https://github.com/google/googletest cd googletest sudo apt install g++ cmake -DCMAKE_CXX_FLAGS=-std=c++11 -Dgtest_build_samples=ON make -j4
output library is lib/libgtest.a
header files at googletest/googletest/include/
-
compile test sample
make clean; make
-
execute test
./test_xml_module