libftdi Archives

Subject: Re: static linking against libftdi?

From: Chris Morgan <chmorgan@xxxxxxxxx>
To: "libftdi@xxxxxxxxxxxxxxxxxxxxxxx" <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Jan 2014 14:57:07 -0500
On Mon, Jan 27, 2014 at 1:48 PM, Chris Morgan <chmorgan@xxxxxxxxx> wrote:
> On Mon, Jan 27, 2014 at 12:58 PM,
> <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>>>>>> "Chris" == Chris Morgan <chmorgan@xxxxxxxxx> writes:
>>
>>     Chris> Hello.  How would I go about having my cmake program link against
>>     Chris> the static version of libftdi? I'd like to ship my utility to
>>     Chris> some people here in house and not have them have to go through a
>>     Chris> process to get libftdi on their systems (fedora doesn't have
>>     Chris> libftdi 1.x available in f19 (and f20 either I think)).
>>
>> I am using Findlibftdi.cmake
>> # Copyright 2009  SoftPLC Corporation  http://softplc.com
>> # Dick Hollenbeck <d...@xxxxxxxxxxx>
>> # License: GPL v2
>>
>> I have
>> set(USE_STATIC_FTDI ON)
>> in CMakeLists.txt for a static build.
>>
>> Bye
>> --
>> Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>
>
> Ahh. So this isn't something supported by the script invoked when you do:
>
> find_package(LibFTDI1 NO_MODULE REQUIRED)
>
> the cmake script included with libftdi itself?
>
> I'll have to give that script a try here.
>
> Chris


How do I use that script? Do I just include it like:

include(Findlibftdi.cmake)

?

It would be cool if this were built-in to the libftdi cmake find
scripts. Of course I don't know how best to do that, but it would be
cool.


Chris

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread