trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2020

Re: [trinity-devel] Installing generated files

From: Slávek Banko <slavek.banko@...>
Date: Sun, 31 May 2020 15:18:27 +0200
On Sunday 31 of May 2020 12:25:49 deloptes wrote:
> Hi devs,
> as we have improved the dbusxml2qt3 significantly, I am trying it out in
> real life implementation, but I have one question I can not find an
> answer.
>
> I hope you can help here. The question is how generated header files can
> be installed. I looked at tdelibs/tdehw, but the generated header files
> are not being installed.
>
> I am thinking that if a dev library is provided then all the relevant
> header files for this library should also be available. Now the problem
> is that it generates the files in some build directory, which I can not
> access with INSTALL or FILE or whatever I found recently on the net and
> tested.
>
> Thank in advance
>

Hi Emanoil,

installing the generated header files is no problem at all. You can use the 
standard CMake command install( FILES ... ), where FILES will contain 
${CMAKE_CURRENT_BINARY_DIR}/header-to-install.h - for example:

https://mirror.git.trinitydesktop.org/gitea/TDE/tdesdk/src/branch/master/cervisia/cvsservice/CMakeLists.txt#L23

Cheers
-- 
Slávek