Reputation: 4274
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
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