[CMake] Lint Integration

Matthias.Goesswein at ecs.steyr.com Matthias.Goesswein at ecs.steyr.com
Wed Sep 17 04:17:09 EDT 2008


Hi,

I´d like to integrate PC-Lint (www.gimpel.com, a source code checker for 
C/C++) to my cmake build system 
(Cross-Compile for an embedded Power PC with WindRiver Compiler, which is 
running on Windows).
My first idea was to add a command to CMAKE_C_COMPILE_OBJECT, but I don't 
know how to extract the include and definition command line options from 
<FLAGS> or <DEFINES>.:

SET(CMAKE_C_COMPILE_OBJECT 
          "<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -Wa,-l -o <OBJECT> -c 
<SOURCE>"
          "${PCLINT_EXECUTABLE} +v -iC:\Lint std.lint <??Include and 
Definition Flags??> <SOURCE> )

How could i do this (is there a possibility to make string manipulation?), 
or is there an other way to integrate lint?
PC-Lint should check each c-File, which is compiled by the Compiler.

Thanks a lot


Engineering Center Steyr GmbH & Co KG
Geschaeftsfuehrende Gesellschaft: Engineering Center Steyr GmbH
Geschaeftsfuehrer der geschaeftsfuehrenden Gesellschaft: Dipl. Ing. Franz 
Dorfer
Sitz der geschaeftsfuehrenden Gesellschaft: 4300 St. Valentin, Oesterreich
Firmenbuchgericht: St. Poelten / FN 140816h
Sitz der Gesellschaft: 4300 St. Valentin, Steyrer Strasse 32, Oesterreich
Firmenbuchgericht: St. Poelten / FN 222001y

CONFIDENTIALITY NOTE: This message contains information which may be 
privileged or confidential, or exempt from disclosure under applicable 
law. If the reader of this message is not the intended recipient, or the 
employee or agent responsible for delivering the message to the intended 
recipient, you are hereby notified that any dissemination, distribution, 
retention, archiving, or copying of this communication is strictly 
prohibited. If you have received this e-mail in error, please notify us 
immediately by return e-mail to the sender of this message.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080917/c90b28ae/attachment.htm>


More information about the CMake mailing list