Copy all files with given extension to output directory using CMake

后端 未结 3 812
长情又很酷
长情又很酷 2020-12-24 11:26

I\'ve seen that I can use this command in order to copy a directory using cmake:

file(COPY \"myDir\" DESTINATION \"myDestination\")

(from t

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-24 12:00

    this also works for me:

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

提交回复
热议问题