[Debian-med-packaging] How to use libgtest-dev in packaging projects (Was: ABySS version is out of date)
Anthony Raymond
traymond at bcgsc.ca
Fri Sep 19 21:33:47 UTC 2014
That's great news Andreas! Thanks again for all your help!
Tony
On 2014-09-19, at 2:16 PM, Andreas Tille wrote:
> Hi Anthony,
>
> thanks to your help I was able to upload abyss.
>
> Kind regards
>
> Andreas.
>
> On Wed, Sep 17, 2014 at 12:17:23PM -0700, Anthony Raymond wrote:
>> 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
>>
>
>
>
> --
> http://fam-tille.de
More information about the Debian-med-packaging
mailing list