Copy All Files With Given Extension To Output Directory Using CMake


Answer :

I've found the solution by myself:



file(GLOB MY_PUBLIC_HEADERS
"myDir/*.h"
)
file(COPY ${MY_PUBLIC_HEADERS} DESTINATION myDestination)


this also works for me:



install(DIRECTORY "myDir/" 
DESTINATION "myDestination"
FILES_MATCHING PATTERN "*.h" )


Comments

Popular posts from this blog

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy