小编Jer*_*oen的帖子

如何使用qmake递归复制文件

在我的源代码树中,我有一堆资源,我想用make install将它们复制到我定义的目标路径.由于资源树有许多子目录,我希望qmake以递归方式查找所有文件.

我试过了:

   resources.path = /target/path
   resources.files += `find /path/to/resources`
   INSTALLS += resources
Run Code Online (Sandbox Code Playgroud)

和:

    resources.path = /target/path
    resources.files += /path/to/resources/*
    resources.files += /path/to/resources/*/*
    resources.files += /path/to/resources/*/*/*
    resources.files += /path/to/resources/*/*/*/*
    INSTALLS += resources
Run Code Online (Sandbox Code Playgroud)

两者都没有我希望的结果.

qmake

5
推荐指数
1
解决办法
1995
查看次数

标签 统计

qmake ×1