On Monday 01 of June 2020 09:40:06 deloptes wrote:
Slávek Banko wrote:
file( GLOB _generated_headers ${CMAKE_CURRENT_BINARY_DIR}/*.h ) install( FILES ${_generated_headers} DESTINATION ${INCLUDE_INSTALL_DIR}/<app>/ )
It looks indeed much better, but it did not work :(. It did not install anything. I have to check what is file(GLOB ....)
oh, sure, I didn't realize - the file( GLOB ... ) is processed during the configuration, when the header files are not yet present - that's why it can't work this way. I'll think again...
Cheers