[Debian-med-packaging] How to use libgtest-dev in packaging projects (Was: ABySS version is out of date)

Anthony Raymond traymond at bcgsc.ca
Wed Sep 17 19:17:23 UTC 2014


Hi Andreas,

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.

Let me know how it goes.

Thanks!
Tony



On 2014-09-17, at 12:58 AM, Andreas Tille wrote:

> Hi Sebastien,
>
> On Wed, Sep 17, 2014 at 08:46:16AM +0200, Sebastien Jodogne wrote:
>> Hi Andreas,
>>
>> Orthanc also depends on Google Test and is properly packaged for Debian.
>>
>> I introduced a CMake parameter "USE_GTEST_DEBIAN_SOURCE_PACKAGE" in
>> the upstream to make it work. This parameter enables the following
>> CMake section [1]:
>>
>> =====
>>  set(GTEST_SOURCES /usr/src/gtest/src/gtest-all.cc)
>>  include_directories(/usr/src/gtest)
>>
>>  if (NOT EXISTS /usr/include/gtest/gtest.h OR
>>      NOT EXISTS ${GTEST_SOURCES})
>>    message(FATAL_ERROR "Please install the libgtest-dev package")
>>  endif()
>> =====
>
> Thanks for the attempt to help but as far as I can see the availability
> of libgtest-dev is definitely not the problem since it is mentioned in
> the Build-Depends and configure has just verified that
> /usr/include/gtest/gtest.h is installed.  It is somehow the usage that
> you need to compile gtest before using it on the build machine.
>
> Thanks anyway
>
>        Andreas.
>
> --
> http://fam-tille.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20140917/522b302f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtest-2.patch
Type: application/octet-stream
Size: 7778 bytes
Desc: gtest-2.patch
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20140917/522b302f/attachment.obj>


More information about the Debian-med-packaging mailing list