On Mon, Nov 5, 2012 at 8:09 AM, Ford <
fsle...@gmail.com> wrote:
> Is there a preferred way to deploy gtest with a project? I understand "make
> install" is disabled because of potential compiler flag issues but I don't
> know the best way to provide gtest with a software package.
I recommend including a copy of gtest with your project and adding
build scripts needed by the build system you choose. LLVM/Clang and
protobuf follow this model.
gtest officially supports cmake. If you use cmake for your build
system, you might be able to reuse gtest's own build scripts.
> I am using
> autotools so I guess I could some how pass the CXXFLAGS from the main
> project configure to the gtest configure. Would it be better for them to
> manually configure gtest (but potentially use different flags)? Many
> projects I have seen let you run "./configure; make; make check; make
> install;" without having to deal with manually building the test suite.
gtest orginally used autotools but we decided to deprecate that as it
was a lot of pain to maintain. Have you considered switching away
from autotools?
--
Zhanyong