cmake - How to let some file to be visiable in QtCreator -


i'm using cmake configure project. seems qtcreator show files referred add_executable, add_library , configure_file. other files in project directory not visiable in projects panel.

although can still visit files file->open, make me feel bad many important source files not visiable in projects panel. so...

  • how qtcreator decide whether show file?
  • is there cmake command can make arbitrary file visiable in qtcreator?

=======================

some additional info:

my project c++ library perlxs interface. xs code preprocessed c code xsubpp, , action added cmake project via add_custom_target. however, xs file not added porjects panel qtcreator. besides, project can have non-source text files such readme, changes, etc..

i see no reason put specific project, when can switch "file system" browser in qtcreator.

enter image description here

but anyway, answer still same. if wish see in project - add add_executable, add_library.

for example

set(data_file ${project_source_dir}/build/readme.txt) ... add_executable(${target_name} ${src_files} ${glb_hdr_files} ${data_file}) 

and can see readme.txt in project

enter image description here

same trick can done other files. add them data_file variable.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -