<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body>
<div class="BodyFragment">
<font size="2"><div class="PlainText">Hi Andreas,<br>
<br>
Following Sebastien's CMake example and suggestions from Steve, I've created a patch for ABySS that compiles gtest when you run `make check`. It's not nearly as elegant since I'm working with autoconf, but it works for me.<br>
<br>
Let me know how it goes.<br>
<br>
Thanks!<br>
Tony<br>
<br>
</div></font>
</div>
<div class="BodyFragment">
<font size="2"><div class="PlainText"><br>
<br>
On 2014-09-17, at 12:58 AM, Andreas Tille wrote:<br>
<br>
> Hi Sebastien,<br>
> <br>
> On Wed, Sep 17, 2014 at 08:46:16AM +0200, Sebastien Jodogne wrote:<br>
>> Hi Andreas,<br>
>> <br>
>> Orthanc also depends on Google Test and is properly packaged for Debian.<br>
>> <br>
>> I introduced a CMake parameter "USE_GTEST_DEBIAN_SOURCE_PACKAGE" in<br>
>> the upstream to make it work. This parameter enables the following<br>
>> CMake section [1]:<br>
>> <br>
>> =====<br>
>> set(GTEST_SOURCES /usr/src/gtest/src/gtest-all.cc)<br>
>> include_directories(/usr/src/gtest)<br>
>> <br>
>> if (NOT EXISTS /usr/include/gtest/gtest.h OR<br>
>> NOT EXISTS ${GTEST_SOURCES})<br>
>> message(FATAL_ERROR "Please install the libgtest-dev package")<br>
>> endif()<br>
>> =====<br>
> <br>
> Thanks for the attempt to help but as far as I can see the availability<br>
> of libgtest-dev is definitely not the problem since it is mentioned in<br>
> the Build-Depends and configure has just verified that<br>
> /usr/include/gtest/gtest.h is installed. It is somehow the usage that<br>
> you need to compile gtest before using it on the build machine.<br>
> <br>
> Thanks anyway<br>
> <br>
> Andreas.<br>
> <br>
> -- <br>
> <a href="http://fam-tille.de">http://fam-tille.de</a><br>
<br>
</div></font>
</div>
</body></html>