trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2020

[SOLVED] Re: Installing generated files

From: deloptes <deloptes@...>
Date: Sun, 31 May 2020 23:23:24 +0200
I found following to be the best solution, although I did not want to use
exclude

install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    DESTINATION ${INCLUDE_INSTALL_DIR}/<generated>
    USE_SOURCE_PERMISSIONS
    FILES_MATCHING PATTERN PATTERN "*.h"
    PATTERN "CMakeFiles" EXCLUDE)

it just fits perfect