Compile-time wildcards in cmake install targets

后端 未结 2 627
夕颜
夕颜 2021-01-06 20:54

I\'m new to cmake and I\'m finding it very frustrating. I am trying to use wildcards in file paths that are evaluated when the build runs, not when the build is generated.

2条回答
  •  执念已碎
    2021-01-06 21:18

    you can use install(SCRIPT swigInstaller.cmake) or install(DIRECTORY) both of which supports doing file globing at install time. You can read more about the install command at:

    http://cmake.org/cmake/help/cmake-2-8-docs.html#command:install

提交回复
热议问题