相关疑难解决方法(0)

如何在 QtCreator 中使用 CMAKE 列出自定义文件?

使用CMAKE管理项目时QtCreator,一些有用的文件不会显示在项目浏览器中(例如 xml 文件、.ui 文件等)。

有没有办法使用 显式添加自定义文件以在项目中列出CMAKE

#*************************************************************************
# Indicate a related file for the project, only for convenient showing in
# project, does not mean dependency, inclusion, but just related.
function ("IndicateExternalFile" NAME )
    # TODO: No idea how to make this.

endfunction()
Run Code Online (Sandbox Code Playgroud)

到目前为止尝试:

file( GLOB "test.xml") #Not showing.
Run Code Online (Sandbox Code Playgroud)

cmake qt-creator

3
推荐指数
1
解决办法
1120
查看次数

标签 统计

cmake ×1

qt-creator ×1