[CMake] Contribute two new find package implementation.

Mathias Fröhlich M.Froehlich at science-computing.de
Mon Oct 10 08:11:57 EDT 2011


Hi,

On Monday 10 October 2011, Michael Hertling wrote:
> AFAICS from Mathias' FindRTI1516{,E}.cmake modules, the libraries have
> different names, but their respective header files are named the same:
>
> FIND_LIBRARY(RTI1516_LIBRARY  NAMES rti1516  RTI1516 ...)
> FIND_LIBRARY(RTI1516E_LIBRARY NAMES rti1516e RTI1516E ...)
>
> FIND_PATH(RTI1516_INCLUDE_DIR  NAMES RTI/RTI1516.h ...)
> FIND_PATH(RTI1516E_INCLUDE_DIR NAMES RTI/RTI1516.h ...)
Yes.

> Therefore, the usage of both libraries for the same binary should be
> quite possible as long as they don't violate the one-definition-rule,
> whereas the inclusion of both headers for the same compilation unit
> will require some trickery, e.g. an intermediate header containing
> configured #include directives with the other headers' full paths.
Yes.
Having different include paths for different object files would be sufficient 
to include all in the same application.
Cmake can do this fine.

Greetings

Mathias

-- 
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 




More information about the CMake mailing list