I am facing an issue in my project during install with CMakeList.
What I want to do, is, during installation, copy files from a folder1 to DESTINATION, and then copy others files from another folder2 but in the same DESTINATION. The issue is that I want an override of common files folder1 by folder2.
My current code:
Install files from folder1
install(DIRECTORY ${folder1} DESTINATION ${CMAKE_INSTALL_PREFIX}/MyFolderDestination
COMPONENT MyComponent
PATTERN ".svn" EXCLUDE
PATTERN "*.pro" EXCLUDE)
Install files from folder2
install(DIRECTORY ${folder2} DESTINATION ${CMAKE_INSTALL_PREFIX}/MyFolderDestination
COMPONENT MyComponent
PATTERN ".svn" EXCLUDE
PATTERN "*.pro" EXCLUDE)
But this is not working, as it doesn't override files, or at least not all... Do you have any idea ?