[Rock-dev] [robot-toolchain] Proposal for Rock.cmake change (install headers to subfolders)

Sylvain Joyeux sylvain.joyeux at dfki.de
Tue May 31 16:47:55 CEST 2011


On 05/31/2011 02:47 PM, Steffen Planthaber wrote:
> Hi,
>
> I have a proposal for a change in Rock.cmake.
This is definitely a rock-dev discussion ;-)

>
> After installing the according headers, they are located directly in 
> the main folder.
> Executables are unable to find these headers because they are included 
> in cohon.h with the subfolder, but are located in the main 
> include/libname/ folder so they would have to be included with 
> #include "whatever.h".
>
> As the install is executed after a successful build, including 
> directly from the install/include/libname folder is also not an option.
>
>
> So I added an macro wich sets the header install for rock libraries to 
> preserve the subfolder structure when installing
Sounds good to me.

> When you call rock_preserve_header_dir(${LIBNAME}) in the 
> CMakeLists.txt file of your package, this behavior is enabled.
>
> We could also make this behavior default, as headers in the 
> INSTALL_HEADERS list without trailing folders are installed in the 
> "normal" way nevertheless.
Just make it default, I think.

Please remove the message() call from the patch and re-submit. Thanks.

-- 
Sylvain Joyeux
Space&  Security Robotics

!!! Achtung, neue Telefonnummer!!!

Standort Bremen:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-454136
Fax:   +49 (0)421 218-454150
E-Mail: robotik at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3
-----------------------------------------------------------------------



More information about the Rock-dev mailing list