[ gpsdrive ] Building gpsdrive without Friendsd and kismet

Guenther Meyer d.s.e at sordidmusic.com
Tue Jan 6 00:00:30 AKST 2009


Am Dienstag 06 Januar 2009 schrieb info at 4x4falcon.com:
> Hi All,
>
> I've been looking at the possibility of building gpsdrive without friends
> and kismet (I don't use them).
>
> So I went through all the files and commented out the relevant sections
> and it then builds fine.
>
> This is not ideal however so I've been trying to sus out how to do it
> using cmake -DKISMET:boolean=0 etc.
>
> So a couple of questions.
>
> What's a suitable cmake -D to not compile kismet? as above? Likewise for
> friendd.
>
I would use the options WITH_KISMET and WITH_FRIENDSD
with default values ON.

you define the possible options and their default values inside 
DefineOptions.cmake

then you have to check those values and set the compiler directives in the 
relevant CMakeLists.txt

example:
if (WITH_KISMET)
  add_definitions(-DKISMET)
endif (WITH_KISMET)

the you can use the usual code:
>  #IFDEF KISMET
>  ...
>  #ENDIF
>

if you do those changes, please also updater the documentation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20090106/6fee9467/attachment.bin>


More information about the GPSdrive mailing list