add configuration for make check, compile libgtest on system