MM.
MM.

Reputation: 4274

QtCreator: Imported cmake project compiles, but source files are not visible

I have opened a CMake project using QtCreator. The project builds successfully; however, I cannot see the source tree in the repository browser. My question is, how do I make the source tree visible in QtCreator after importing a CMake project?

Upvotes: 1

Views: 826

Answers (1)

Moataz Elmasry
Moataz Elmasry

Reputation: 548

Qt won't show files in the projects tab if they aren't used as a source for some target. If you add your source files path to CMakeLists.txt add_executable(), they will show up correctly.

Upvotes: 1

Related Questions