trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2020

Re: Installing generated files

From: deloptes <deloptes@...>
Date: Sun, 31 May 2020 21:09:14 +0200
Sl�vek Banko wrote:

> 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:

Hi Slavek,
thank you. Yes this is very simple, however I did not mention that I am
interested in doing something like

${CMAKE_CURRENT_BINARY_DIR}/*.h

or even better, as I have already a list of source and header files defined
for the target and CMAKE_CURRENT_BINARY_DIR I want to do something like

install( 
   FILES ${MY_HDRS}
   DESTINATION ${INCLUDE_INSTALL_DIR}/<app>/ )

Is this possible?

thanks