使用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)